Skip to content

wip

wip #694

Workflow file for this run

name: Run tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['>=2.2,<2.3', '>=3.2,<3.3', '>=4.0,<4.3', '>=5.0,<5.3']
exclude:
- python-version: '3.7'
django-version: '>=4.0,<4.3'
- python-version: '3.7'
django-version: '>=5.0,<5.3'
- python-version: '3.8'
django-version: '>=5.0,<5.3'
- python-version: '3.9'
django-version: '>=5.0,<5.3'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python 2.7
run: ./.github/scripts/setup-python2.7.sh
- name: Install dependencies
run: |
pip install --upgrade pip
pip install poetry
make build-drafter
make install
pip install 'Django ${{ matrix.django-version }}'
- name: Check coding standards
if: ${{ matrix.python-version != '3.7' }}
run: make lint
- name: Run tests
run: make test
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml