ADMT Tasks (see miletones) #249
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: Code coverage | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
code-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest pytest-cov build numpy gsw netCDF4 matplotlib | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Test coverage | |
run: | | |
python -m pytest --cov ./medsrtqc | |
- name: "Upload coverage to Codecov" | |
uses: codecov/codecov-action@v1 |