Skip to content

Commit

Permalink
wip: Test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
prcr committed Sep 6, 2024
1 parent ef3f82b commit d138925
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ jobs:
pip install -r tests/requirements.txt

- name: Test with pytest
run: |
run:
pytest --cov
ls -la
env:
PYTHONPATH: .
COVERAGE_FILE: .coverage.${{ matrix.python-version }}
COVERAGE_FILE: coverage.${{ matrix.python-version }}

- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: .coverage.${{ matrix.python-version }}
path: coverage.${{ matrix.python-version }}
if-no-files-found: error
retention-days: 3

upload-coverage:
Expand All @@ -70,12 +70,15 @@ jobs:
merge-multiple: true

- name: Combine coverage data
run:
coverage combine
run: |
ls -la
coverage combine coverage*
ls -la
- name: Generate XML coverage report
run:
coverage xml
run: |
coverage xml --include=coverage*
ls -la
- name: Run codacy-coverage-reporter
uses: codacy/[email protected]
Expand Down

0 comments on commit d138925

Please sign in to comment.