diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..2b62a87 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,33 @@ +name: Generate Coverage Report + +on: + push: + pull_request: + +jobs: + analyze: + name: Compute Coverage + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + python-version: [3] + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + # install deps + - name: Install dependencies for ${{ matrix.os }} Python ${{ matrix.python-version }} + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install scipy coverage + + # find and run all unit tests + - name: Run unit tests + run: coverage run -m unittest discover test \ No newline at end of file