-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 989 Bytes
/
ubuntu.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
34
35
name: pytest-ubuntu
run-name: Run pytest on Ubuntu
on:
push:
branches: 'main'
pull_request:
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.13"]
name: pytest-ubuntu-python-${{ matrix.python-version }}
steps:
- name: Checkout
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: |
pip3 install .[tests]
- name: Run pytest without Django
env:
PYTEST_ADDOPTS: "--color=yes"
run: |
python3 -m pytest -v -n auto
- name: Run pytest with Django
env:
PYTEST_ADDOPTS: "--color=yes"
run: |
python3 -m install .[tests,django_tests,django]
./tests/test_django/manage.py migrate
python3 -m pytest -v -n auto