Skip to content

Merge pull request #355 from open-sdg/2.4.0-dev #54

Merge pull request #355 from open-sdg/2.4.0-dev

Merge pull request #355 from open-sdg/2.4.0-dev #54

Workflow file for this run

name: Upload coverage to codecov.io
on:
push:
branches:
- '**-dev'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install pytest-cov
python -m pip install -r requirements.txt
python setup.py install
- name: Test with pytest
run: |
python -m pytest --cov=sdg --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true