Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdu committed Dec 24, 2024
1 parent 7b4028d commit 1c250fb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@main

- uses: actions/setup-python@v4
- uses: actions/setup-python@main
with:
python-version: '3.10'

- name: Install requirements
run: |
pip install pyfaidx==0.5.8
pip install pytest
pip install gcovr
pip install pytest-cov
- name: Generate coverage report
run: |
python setup.py build_ext -i
pytest tests
gcovr --filter src/ --xml -o coverage.xml
env:
CFLAGS: --coverage
pytest --cov=./src --cov-report=xml tests
- name: Upload Coverage to CodeCov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
directory: ./coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage1.xml,./coverage2.xml,!./cache
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
4 changes: 2 additions & 2 deletions .github/workflows/main.yml → .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
CIBW_BUILD_VERBOSITY: 0
#CIBW_ARCHS_LINUX: auto aarch64
#CIBW_ARCHS_MACOS: x86_64 arm64 universal2
CIBW_TEST_COMMAND: python {project}/setup.py test
CIBW_TEST_REQUIRES: pyfaidx==0.5.8
CIBW_TEST_COMMAND: pytest tests
CIBW_TEST_REQUIRES: pyfaidx==0.5.8 pytest

- name: Display wheel
run: ls -l wheelhouse
Expand Down

0 comments on commit 1c250fb

Please sign in to comment.