Skip to content

Merge pull request #113 from diogoteles08/master #37

Merge pull request #113 from diogoteles08/master

Merge pull request #113 from diogoteles08/master #37

Workflow file for this run

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