Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci/fix(test-using-pytest): ensure hatch is always installed when needed #690

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {} \;