-
Notifications
You must be signed in to change notification settings - Fork 44
64 lines (53 loc) · 1.44 KB
/
test.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test
on:
- push
- pull_request
jobs:
tests:
name: Python ${{ matrix.python }} + PostgreSQL ${{ matrix.postgresql }}
runs-on: ubuntu-latest
services:
postgres:
image: postgres:${{ matrix.postgresql }}
env:
POSTGRES_DB: sqlalchemy_searchable_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
strategy:
fail-fast: false
matrix:
include:
- python: "3.12"
postgresql: "16"
- python: "3.11"
postgresql: "15"
- python: "3.10"
postgresql: "14"
- python: "3.9"
postgresql: "13"
- python: "3.8"
postgresql: "12"
- python: "pypy3.9"
postgresql: "11"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade tox setuptools
- name: Run tests
env:
SQLALCHEMY_SEARCHABLE_TEST_PASSWORD: postgres
TOXENV: py-sqla1.4, py-sqla2.0
run: tox