-
Notifications
You must be signed in to change notification settings - Fork 27
46 lines (43 loc) · 1.08 KB
/
tox.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
36
37
38
39
40
41
42
43
44
45
46
name: Run tox
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
name: "Project tests via tox"
services:
postgres:
image: postgres
env:
POSTGRES_USER: django_app
POSTGRES_PASSWORD: django_app
ports:
- 5432:5432
runs-on: ubuntu-20.04
strategy:
matrix:
python: [3.5, 3.6, 3.8, "3.10", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
- name: Install dependencies
run: |
sudo apt update
cat dependencies.txt | xargs sudo apt install -y
python -m pip install --upgrade pip
pip install 'tox<4' 'tox-gh-actions<3'
- name: Start redis
run: sudo systemctl start redis-server
- name: Setup tox, dependencies, and run tests
run: make github-tox