-
-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (33 loc) · 863 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 }}