Skip to content

ADMT Tasks (see miletones) #249

ADMT Tasks (see miletones)

ADMT Tasks (see miletones) #249

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