Skip to content

Commit

Permalink
Add test coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Apr 7, 2022
1 parent 9819b20 commit 491a782
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@ jobs:

# We have two cores so we can speed up the testing with xdist
- name: Install xdist and openfiles
run: pip install pytest-xdist pytest-openfiles pytest-flake8
run: pip install pytest-xdist pytest-openfiles pytest-flake8 pytest-cov

- name: Build and install
run: pip install -v .

- name: Run tests
run: pytest -r a -v -n 3 --open-files
run: pytest -r a -v -n 3 --open-files --cov=astro_metadata_translator --cov=tests --cov-report=xml --cov-report-term --cov-branch

- name: Upload coverage to codecov
uses: codecov/codecov-action@v2
with:
file: ./coverage.xml

- name: Install documenteer
run: pip install -r doc/requirements.txt
Expand Down

0 comments on commit 491a782

Please sign in to comment.