Skip to content

Commit

Permalink
Move preparations to separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Boenninghausen committed Sep 13, 2024
1 parent e1ef25e commit dae12cb
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/socbed-systemtest-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,31 @@ on:
- cron: "0 1 * * THU" # At 01:00 on Thursday
workflow_dispatch:


jobs:
build-machines:
prepare-environment:
runs-on: [self-hosted, linux]
timeout-minutes: 480
steps:
- uses: actions/checkout@v4
with:
ref: replace-smtpd-with-aiosmtpd

ref: replace-smtpd-with-aiosmtpd # Change this to the development branch name
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements.txt
run: pip install -r requirements.txt --no-cache-dir
- name: Install SOCBED
run: pip install --editable .

build-machines:
runs-on: [self-hosted, linux]
timeout-minutes: 480
steps:
- uses: actions/checkout@v4
with:
ref: replace-smtpd-with-aiosmtpd # Change this to the development branch name

- name: Build Internet Router
uses: nick-invision/retry@v3
Expand Down Expand Up @@ -84,7 +94,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: dev
ref: replace-smtpd-with-aiosmtpd # Change this to the development branch name
- uses: actions/setup-python@v5
with:
python-version: '3.12'
Expand All @@ -109,7 +119,13 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: dev
ref: replace-smtpd-with-aiosmtpd # Change this to the development branch name

- name: Delete created VMs
run: ./tools/delete_vms

- name: Uninstall SOCBED
run: pip uninstall socbed -y

- name: Remove all installed packages
run: pip freeze | xargs pip uninstall -y

0 comments on commit dae12cb

Please sign in to comment.