Bump version: 0.3.1 → 0.4.0 #51
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: Coverage | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Test with pytest | |
run: | | |
python -m pip install --upgrade pip pycdfpp | |
pip install -e . | |
pip install -r requirements_dev.txt | |
pip install pytest pytest-cov sphinx pandoc | |
pip install -r docs/requirements.txt | |
pytest --cov=./ --cov-report=xml | |
make doctest | |
- name: Upload coverage to Codecov | |
if: matrix.python-version == '3.8' | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: true |