Skip to content

Commit

Permalink
ci/fix(test-using-pytest): ensure hatch is always installed when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker authored and hoh committed Sep 3, 2024
1 parent 02affa3 commit 1c888e2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test-using-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,19 @@ jobs:
- name: "Build example volume"
run: |
cd examples/volumes && bash build_squashfs.sh
# Unit tests create and delete network interfaces, and therefore require to run as root
- name: Run unit tests
run: |
sudo python3 -m pip install hatch hatch-vcs coverage
sudo hatch run testing:cov
- name: Output modules used and their version
if: always()
run: |
sudo hatch -e testing run pip freeze
# re-install hatch in case previous job failed and hatch didn't get installed
sudo python3 -m pip install hatch hatch-vcs coverage
sudo hatch -e testing run pip freeze
- name: Upload coverage reports to Codecov
Expand All @@ -107,4 +110,4 @@ jobs:
- name: Run Shellcheck on all shell scripts
run: |
find ./ -type f -name "*.sh" -exec shellcheck {} \;

0 comments on commit 1c888e2

Please sign in to comment.