File tree Expand file tree Collapse file tree 2 files changed +37
-14
lines changed Expand file tree Collapse file tree 2 files changed +37
-14
lines changed Original file line number Diff line number Diff line change 1
- name : ci
1
+ name : postgres
2
2
3
3
on :
4
4
pull_request :
5
5
branches :
6
6
- main
7
- - test
8
7
workflow_dispatch :
9
8
10
9
jobs :
11
10
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
14
13
strategy :
15
14
matrix :
16
15
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"
23
18
steps :
24
19
- uses : actions/checkout@v4
25
20
- name : Setup Python
26
21
uses : actions/setup-python@v5
27
22
with :
28
23
python-version : ${{ matrix.python }}
29
- - name : Install tox
30
- run : pip install tox
24
+ - name : Install uv
25
+ uses : astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182
31
26
- name : Install postgresql
32
27
run : |
33
28
sudo apt-get install -y postgresql
39
34
run : |
40
35
sudo systemctl restart postgresql
41
36
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments