From dbb603a8971c8d52f0617e3dd68526098935090d Mon Sep 17 00:00:00 2001 From: Jo Walsh Date: Tue, 25 Jun 2024 14:59:26 +0100 Subject: [PATCH] move coverage back to a second action (only run on pull_request) --- .github/workflows/conda.yml | 8 -------- .github/workflows/coverage.yml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/conda.yml b/.github/workflows/conda.yml index 283f4de..08484c4 100644 --- a/.github/workflows/conda.yml +++ b/.github/workflows/conda.yml @@ -28,11 +28,3 @@ jobs: - run: | pip install pytest-cov python -m pytest --cov=cyto_ml --cov-report xml:coverage.xml tests/ - coverage: - runs-on: ubuntu-latest - steps: - - name: Test coverage report - uses: orgoro/coverage@v3.1 - with: - coverageFile: coverage.xml - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..01344aa --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,14 @@ +name: 'coverage' +on: + pull_request: + branches: + - main +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - name: Test coverage report + uses: orgoro/coverage@v3.1 + with: + coverageFile: coverage.xml + token: ${{ secrets.GITHUB_TOKEN }}