File: codecov.yml

package info (click to toggle)
pyfastx 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,336 kB
  • sloc: ansic: 4,826; python: 1,816; sh: 505; perl: 66; makefile: 31
file content (35 lines) | stat: -rw-r--r-- 793 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: coverage

on: [push, pull_request]

jobs:
  run:
    name: Coverage Test
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@main

      - 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

      - name: Generate coverage report
        run: |
          python setup.py build_ext -i --debug
          pytest tests
          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
          token: ${{ secrets.CODECOV_TOKEN }}
          verbose: true