a b/.github/workflows/code-coverage.yml
1
on:
2
  push:
3
    branches:
4
      - master
5
6
  workflow_dispatch:
7
8
name: codecov
9
10
jobs:
11
  test:
12
    runs-on: ubuntu-latest
13
    steps:
14
      - uses: actions/checkout@v4
15
      - uses: actions/setup-python@v5
16
17
      - name: Install package
18
        run: python -m pip install .
19
20
      - name: Install coverage
21
        run: python -m pip install coverage
22
23
      - name: Install optional dependencies
24
        run: python -m pip install SimpleITK
25
26
      - name: Unit tests
27
        run: tests/run_tests.sh -c
28
29
      - name: Coveralls
30
        uses: coverallsapp/github-action@v2.2.3
31
        with:
32
          file: tests/coverage.xml