Skip to content

Add GitHub Actions

Add GitHub Actions #5

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
django: [">=3.1.0,<3.2", ">=2.2.0,<2.3"]
python-version: ["3.7", "3.8"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r dev-env-requirements.txt
pip install "django${{ matrix.django }}"
- name: Test
run: ./setup.py test
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2