--- a +++ b/.github/workflows/code-coverage.yml @@ -0,0 +1,32 @@ +on: + push: + branches: + - master + + workflow_dispatch: + +name: codecov + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + + - name: Install package + run: python -m pip install . + + - name: Install coverage + run: python -m pip install coverage + + - name: Install optional dependencies + run: python -m pip install SimpleITK + + - name: Unit tests + run: tests/run_tests.sh -c + + - name: Coveralls + uses: coverallsapp/github-action@v2.2.3 + with: + file: tests/coverage.xml