Skip to content

nop

nop #417

Workflow file for this run

on: push
name: Django CI
jobs:
build:
runs-on: ubuntu-20.04
strategy:
max-parallel: 4
matrix:
python-version: ["3.6.9", "3.7.17", "3.11.5"] # 3.6.9 is what is running on prod
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage # Explicitly install coverage
- name: Run Tests
run: |
coverage run ./manage.py test
- name: Coverage report
run: |
coverage report
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]