From be0bd08f555a35f334b437ecd7f3f53a8a4b68d1 Mon Sep 17 00:00:00 2001 From: Sara Burns Date: Wed, 5 Jun 2024 15:01:58 -0400 Subject: [PATCH] fix: testing --- .github/workflows/ci.yml | 14 ++++++------- .github/workflows/code_coverage.yaml | 30 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/code_coverage.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0dfcf5d..a15d142b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} \ No newline at end of file + # - 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 }} \ No newline at end of file diff --git a/.github/workflows/code_coverage.yaml b/.github/workflows/code_coverage.yaml new file mode 100644 index 00000000..60e10a2e --- /dev/null +++ b/.github/workflows/code_coverage.yaml @@ -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 }} \ No newline at end of file