Skip to content

Merge pull request #85 from ghazi-git/pre-commit-ci-update-config #322

Merge pull request #85 from ghazi-git/pre-commit-ci-update-config

Merge pull request #85 from ghazi-git/pre-commit-ci-update-config #322

Workflow file for this run

name: Coverage
on:
- push
- pull_request
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Generate coverage report
run: |
pip install .
pip install django~=3.2 pytest pytest-django pytest-cov drf-spectacular django-filter
pytest --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true