Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdu committed Dec 24, 2024
1 parent bde3db2 commit 1805c90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
- name: Generate coverage report
run: |
python setup.py build_ext -i --debug
gcovr --filter src/ --xml -o coverage.xml
gcovr --filter src --xml -o coverage.xml
- name: Upload Coverage to CodeCov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
files: Coverage.xml
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
2 changes: 1 addition & 1 deletion .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
CIBW_BUILD_VERBOSITY: 0
#CIBW_ARCHS_LINUX: auto aarch64
#CIBW_ARCHS_MACOS: x86_64 arm64 universal2
CIBW_TEST_COMMAND: python setup.py test
CIBW_TEST_COMMAND: python setup.py build_ext -i & pytest tests
CIBW_TEST_REQUIRES: pyfaidx==0.5.8 pytest

- name: Display wheel
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,15 @@ def build_extensions(self):
if opt != '-O2'
]
self.compiler.compiler_so.append('-O0')
self.compiler.compiler_so.append('--coverage')

self.compiler.linker_so = [
opt
for opt in self.compiler.linker_so
if opt != '-O2'
]
self.compiler.linker_so.append('-O0')
self.compiler.linker_so.append('--coverage')

else:
self.compiler.compiler_so = [
Expand Down

0 comments on commit 1805c90

Please # to comment.