Merge pull request #113 from diogoteles08/master #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codecov workflow | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
codecov: | |
name: Codecov Workflow | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.8 | |
- name: Generate coverage report | |
run: | | |
sudo apt-get install libhdf5-serial-dev | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install pytest pytest-cov | |
python -m pip install .[tests] | |
pytest --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml | |
flags: unittests |