Skip to content

Commit

Permalink
separate testing and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
edikedik committed Jan 28, 2024
1 parent 7b9a357 commit 3d6b5c0
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing
name: Testing and Coverage

on: [ push ]

Expand Down Expand Up @@ -28,9 +28,6 @@ jobs:
use-mamba: true
channels: conda-forge, defaults, bioconda
channel-priority: true
# activate-environment: lXt-dev
# environment-file: environment.yml
# use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -46,8 +43,26 @@ jobs:
pytest
--cov=lXtractor
--cov-branch
--cov-report=term-missing
- name: Publish cov
--cov-report=xml # Changed to XML format for interoperability
- name: Upload coverage data
uses: actions/upload-artifact@v3
with:
name: coverage-report-${{ matrix.python-version }}
path: coverage-report-${{ matrix.python-version }}.xml

publish-coverage:
name: Coverage
needs: test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Download coverage data
uses: actions/download-artifact@v3
with:
name: coverage-report-3.10
path: coverage-report-3.10.xml
- name: Publish Coverage
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3d6b5c0

Please sign in to comment.