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 4103ff5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 44 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,10 @@ 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
uv run pytest --cov --junitxml=junit.xml -o junit_family=legacy
- name: Upload pytest test results
uses: actions/upload-artifact@v4
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
name: pytest-results-${{ matrix.python-version }}-${{matrix.django-version}}
path: junit-${{ matrix.python-version }}-${{matrix.django-version}}.xml
if: ${{ always() }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: ${{ always() }}
continue-on-error: true
with:
env_vars: OS,PYTHON
fail_ci_if_error: true
files: 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
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 4103ff5

Please sign in to comment.