Skip to content

Commit

Permalink
Push coverage report only once
Browse files Browse the repository at this point in the history
  • Loading branch information
chinskiy committed Apr 18, 2024
1 parent 112294e commit 22130b1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,27 @@ jobs:
- python-version: '3.12'
tox-env: py312-django50

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
python -m pip install --upgrade pip setuptools tox
- name: Run tests
env:
TOXENV: ${{ matrix.tox-env }}
run: |
tox -v
codecov:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4

Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ passenv =
COVERAGE_ARGS
GITHUB_*
commands =
make coverage
make test

[testenv:flake8]
commands = make flake8
Expand All @@ -32,3 +32,6 @@ deps = flake8==7.0.0
[testenv:isort]
commands = make isort_check_only
deps = isort==5.13.2

[testenv:codecov]
commands = make coverage

0 comments on commit 22130b1

Please sign in to comment.