NAS-132940 / 24.10.2 / fix zvol output when there are no zvols (by yocalebo) #439
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add pytest coverage to PR | |
on: | |
pull_request: | |
types: | |
- 'synchronize' | |
- 'opened' | |
push: | |
branches: | |
- 'master' | |
jobs: | |
add-coverage: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/truenas/middleware:master | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup dependencies | |
run: | | |
/usr/bin/install-dev-tools | |
- name: Deps | |
run: | | |
pip install --break-system-packages -r requirements.txt | |
pip install --break-system-packages pytest-cov | |
pip install --break-system-packages -U . | |
- name: Run tests | |
run: pytest --cov-report xml --cov=ixdiagnose | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
files: ./coverage.xml | |
token: ${{ secrets.CODECOV }} |