Skip to content

Merge pull request #44 from aimclub/fix-readme-badge #63

Merge pull request #44 from aimclub/fix-readme-badge

Merge pull request #44 from aimclub/fix-readme-badge #63

Workflow file for this run

name: codecov
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest-cov
- name: Test with pytest
run: |
pytest --cov=app -s tests/
- name: Upload coverage to codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}