Skip to content

Commit

Permalink
github: split test setup and the actual run
Browse files Browse the repository at this point in the history
When I open the log for test run in GitHub actions, I want to see just
the test run, not pip install deps. Let's split these two things
to make the log more readable.
  • Loading branch information
ondrejbudai authored and mvo5 committed Mar 7, 2024
1 parent 9ac04fb commit 60a8c47
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ jobs:
run: |
df -h
sudo du -sh * /var/tmp /tmp /var/lib/containers | sort -sh
- name: Run tests
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Install test deps
run: |
# make sure test deps are available for root
sudo -E pip install --user -r test/requirements.txt
Expand All @@ -90,6 +87,11 @@ jobs:
# use custom basetemp here because /var/tmp is on a smaller disk
# than /mnt
sudo mkdir -p /mnt/var/tmp/bib-tests
- name: Run tests
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
sudo -E XDG_RUNTIME_DIR= pytest-3 -s -vv --basetemp=/mnt/var/tmp/bib-tests
- name: Diskspace (after)
if: ${{ always() }}
Expand Down

0 comments on commit 60a8c47

Please sign in to comment.