Updates Python and dependencies #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- 3.12 | |
- 3.11 | |
- 3.10 | |
- 3.9 | |
- 3.8 | |
django-version: | |
- 3 | |
- 4 | |
- 5 | |
name: Python ${{ matrix.python-version }} & Django ${{ matrix.django-version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: | | |
python -m venv .venv/ | |
.venv/bin/pip install poetry | |
- name: Install dependencies | |
run: | | |
.venv/bin/pip install --upgrade pip | |
.venv/bin/poetry install | |
- name: Run tox | |
run: .venv/bin/poetry run tox -e py${{ matrix.python-version }}-django${{ matrix.django-version }} |