| 1 | name: Test Coverage |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | |
| 8 | jobs: |
| 9 | test_coverage: |
| 10 | runs-on: ubuntu-latest |
| 11 | |
| 12 | steps: |
| 13 | - uses: actions/checkout@v6 |
| 14 | - name: Set up Python |
| 15 | uses: actions/setup-python@v5 |
| 16 | with: |
| 17 | python-version: '3.12' |
| 18 | - name: Install Flit |
| 19 | run: pip install flit "django>=5.1" |
| 20 | - name: Install Dependencies |
| 21 | run: flit install --symlink |
| 22 | - name: Test |
| 23 | run: pytest --cov=ninja --cov-report=xml tests |
| 24 | - name: Coverage |
| 25 | uses: codecov/[email protected] |