-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (44 loc) · 1.13 KB
/
tests.yml
File metadata and controls
50 lines (44 loc) · 1.13 KB
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
47
48
49
50
name: tests
on:
pull_request:
push:
branches: [main]
# Only allow one instance of this workflow for each PR.
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-24.04
timeout-minutes: 5
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: |
3.12
3.13
3.14
allow-prereleases: true
cache: 'pip'
cache-dependency-path: |
pyproject.toml
tox.ini
- run: pip install --group test_runners
- run: tox run-parallel --parallel-no-spinner
env:
FORCE_COLOR: "1"
DEFAULT_DATABASE_URL: postgres://postgres:postgres@localhost/subatomic
OTHER_DATABASE_URL: postgres://postgres:postgres@localhost/subatomic_other