Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
domdinicola committed Dec 31, 2024
1 parent 336f9c6 commit 0affe89
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 42 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,15 @@ jobs:
- name: Test
if: needs.changes.outputs.run_tests
run: |
uv run pytest tests --create-db --junit-xml junit-${{ matrix.python-version }}-${{matrix.django-version}}.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}-${{matrix.django-version}}
path: junit-${{ matrix.python-version }}-${{matrix.django-version}}.xml
if: ${{ always() }}
uv run pytest --cov-report xml:./output/coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: ${{ always() }}
uses: codecov/codecov-action@v4
continue-on-error: true
with:
env_vars: OS,PYTHON
fail_ci_if_error: true
files: coverage.xml
files: /app/output/coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false
name: codecov-${{env.GITHUB_REF_NAME}}
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ dependencies = [
"PyJWT",
"requests",
"social-auth-app-django",
"setuptools",
"wheel",
"pre-commit>=4.0.1",
]

[tool.uv]
Expand All @@ -49,6 +46,7 @@ dev-dependencies = [
"pytest-django",
"pytest-echo",
"pytest-factoryboy",
"pre-commit",
"requests-mock",
"responses",
"tox",
Expand Down
4 changes: 0 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ addopts =
--tb=short
--capture=no
--reuse-db
--cov-report=html
--cov-report=term
--cov-config=tests/.coveragerc
--cov=unicef_security
--echo-version django
Expand Down Expand Up @@ -44,7 +42,5 @@ commands =
pytest tests \
-q \
--create-db \
--cov-report=html \
--cov-report=term \
--cov-config={toxinidir}/tests/.coveragerc \
--cov=unicef_security
26 changes: 2 additions & 24 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0affe89

Please sign in to comment.