Debian Codegraph @

.github/workflows/coverage.yml

raw symbols SCIP
1 name: code coverage
2
3 on:
4 - push
5 - pull_request
6
7 permissions:
8 contents: read
9
10 jobs:
11 build:
12 runs-on: ubuntu-latest
13 name: Code Coverage
14 steps:
15 - name: Checkout
16 uses: actions/checkout@main
17 - name: Set up Python
18 uses: actions/setup-python@main
19 with:
20 python-version: '3.13'
21 - name: Install coverage
22 run: pip install coverage
23 - name: Install astroalign dependencies
24 run: pip install numpy scipy scikit-image "sep>=1.4.0"
25 - name: Install test dependencies
26 run: pip install -r tests/requirements.txt
27 - name: Run coverage
28 run: |
29 python -m coverage run -m unittest -v
30 coverage xml --fail-under=80 -o coverage.xml
31 - name: Code Coverage Report
32 uses: irongut/[email protected]
33 with:
34 filename: coverage.xml
35 badge: true
36 fail_below_min: true
37 format: markdown
38 hide_branch_rate: false
39 hide_complexity: true
40 indicators: true
41 output: both
42 thresholds: '60 80'