Skip to content

Commit f008343

Browse files
committed
CI: Split into sqlite/posgres
Signed-off-by: Zack Cerza <zack@cerza.org>
1 parent 69835d4 commit f008343

File tree

2 files changed

+37
-14
lines changed

2 files changed

+37
-14
lines changed
Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
1-
name: ci
1+
name: postgres
22

33
on:
44
pull_request:
55
branches:
66
- main
7-
- test
87
workflow_dispatch:
98

109
jobs:
1110
test:
12-
name: CI on python${{ matrix.python }} via ${{ matrix.os }}
13-
runs-on: ${{ matrix.os }}
11+
name: postgres on python${{ matrix.python }} via ${{ matrix.os }}
12+
runs-on: ubuntu-latest
1413
strategy:
1514
matrix:
1615
include:
17-
- os: ubuntu-22.04
18-
python: "3.10"
19-
- os: ubuntu-22.04
20-
python: "3.11"
21-
- os: ubuntu-24.04
22-
python: "3.12"
16+
- python: "3.10"
17+
- python: "3.13"
2318
steps:
2419
- uses: actions/checkout@v4
2520
- name: Setup Python
2621
uses: actions/setup-python@v5
2722
with:
2823
python-version: ${{ matrix.python }}
29-
- name: Install tox
30-
run: pip install tox
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182
3126
- name: Install postgresql
3227
run: |
3328
sudo apt-get install -y postgresql
@@ -39,5 +34,6 @@ jobs:
3934
run: |
4035
sudo systemctl restart postgresql
4136
pg_isready
42-
- name: Run unit tests
43-
run: tox -e py3
37+
createdb -h localhost -p 5432 -U postgres shamantest
38+
- name: Run tox
39+
run: uv tool run tox -e postgres

.github/workflows/sqlite.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: sqlite
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
name: sqlite on python${{ matrix.python }} via ${{ matrix.os }}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
include:
16+
- python: "3.10"
17+
- python: "3.13"
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Setup Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python }}
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182
26+
- name: Run tox
27+
run: uv tool run tox

0 commit comments

Comments
 (0)