Skip to content

Commit

Permalink
fix: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
saraburns1 committed Jun 5, 2024
1 parent 829c9d7 commit be0bd08
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
TOXENV: ${{ matrix.toxenv }}
run: tox

- name: Run Coverage
if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
uses: codecov/codecov-action@v4
with:
flags: unittests
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Run Coverage
# if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
# uses: codecov/codecov-action@v4
# with:
# flags: unittests
# fail_ci_if_error: true
# token: ${{ secrets.CODECOV_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/code_coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Code coverage

on:
workflow_run:
workflows: ["ci"]
types:
- completed

jobs:
run_tests:
name: tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ 'ubuntu-20.04' ]
python-version: ['3.8', '3.11', '3.12']
toxenv: [ 'django42' ]
steps:
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run Coverage
if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
uses: codecov/codecov-action@v4
with:
flags: unittests
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit be0bd08

Please sign in to comment.