Skip to content

workflow: ⚙️ add support for Django Ninja v1.0 #35

workflow: ⚙️ add support for Django Ninja v1.0

workflow: ⚙️ add support for Django Ninja v1.0 #35

Workflow file for this run

name: coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run-tests-and-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --no-root
- name: Run tests with coverage
env:
DJANGO_SETTINGS_MODULE: tests.test_settings
run: |
poetry run coverage run -m django test
poetry run coverage report
poetry run coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}