Skip to content

Remove Python 2.7 from the GH Actions matrix #2

Remove Python 2.7 from the GH Actions matrix

Remove Python 2.7 from the GH Actions matrix #2

Workflow file for this run

name: Unit tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Python ${{ matrix.env.python }} | ${{ matrix.env.TOXENV }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
env:
- python: 3.7
TOXENV: py37-django21-drf3
- python: 3.7
TOXENV: py37-django22-drf3
- python: 3.7
TOXENV: py37-django30-drf3
- python: 3.8
TOXENV: py38-django21-drf3
- python: 3.8
TOXENV: py38-django22-drf3
- python: 3.8
TOXENV: py38-django30-drf3
- python: 3.8
TOXENV: py38-django31-drf3
- python: 3.8
TOXENV: py38-django32-drf3
- python: 3.9
TOXENV: py39-django22-drf3
- python: 3.9
TOXENV: py39-django30-drf3
- python: 3.9
TOXENV: py39-django31-drf3
- python: 3.9
TOXENV: py39-django32-drf3
- python: 3.9
TOXENV: py39-django40-drf3
- python: 3.9
TOXENV: py39-django41-drf3
- python: 3.9
TOXENV: py39-django42-drf3
- python: '3.10'
TOXENV: py310-django32-drf3
- python: '3.10'
TOXENV: py310-django40-drf3
- python: '3.10'
TOXENV: py310-django41-drf3
- python: '3.10'
TOXENV: py310-django42-drf3
steps:
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.env.python }}
- name: Install tox
run: pip install tox
- name: Run Tests
env:
TOXENV: django${{ matrix.env.TOXENV }}
run: tox -e ${{ matrix.env.TOXENV }}