7
7
- main
8
8
9
9
jobs :
10
- test :
10
+ build :
11
11
runs-on : ubuntu-latest
12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
15
python-version : [ "3.13" ]
16
- poetry-version : [ "1.8.5" ]
17
16
18
17
env :
19
18
PYTHONDONTWRITEBYTECODE : 1
20
19
PYTHONUNBUFFERED : 1
21
20
POSTGRES_DB : testdb
22
21
POSTGRES_HOST : 127.0.0.1
23
- POSTGRES_USER : app-user
22
+ POSTGRES_USER : panettone
24
23
POSTGRES_PASSWORD : secret
25
24
PGPASSWORD : secret
26
25
REDIS_HOST : 127.0.0.1
37
36
sqldb :
38
37
image : postgres:16
39
38
env :
40
- POSTGRES_USER : app-user
39
+ POSTGRES_USER : panettone
41
40
POSTGRES_PASSWORD : secret
42
41
POSTGRES_DB : testdb
43
42
ports :
@@ -48,18 +47,13 @@ jobs:
48
47
steps :
49
48
- uses : actions/checkout@v4
50
49
- name : Create database schema
51
- run : PGPASSWORD=secret psql -h 127.0.0.1 -d testdb -U app-user -c "CREATE SCHEMA shakespeare; CREATE SCHEMA happy_hog;"
52
- - uses : actions/setup-python@v5
50
+ run : PGPASSWORD=secret psql -h 127.0.0.1 -d testdb -U panettone -c "CREATE SCHEMA shakespeare; CREATE SCHEMA happy_hog;"
51
+
52
+ - name : Install the latest version of uv and set the python version
53
+ uses : astral-sh/setup-uv@v5
53
54
with :
54
55
python-version : ${{ matrix.python-version }}
55
- - name : Install Poetry
56
- uses : abatilo/actions-poetry@v3
57
- with :
58
- poetry-version : ${{ matrix.poetry-version }}
59
- - name : Install dependencies
60
- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
61
- run : poetry install --no-interaction --no-root
62
- - name : Test Code
63
- run : poetry run pytest tests/
64
- - name : Lint Code
65
- run : poetry run ruff check .
56
+
57
+ - name : Test with python ${{ matrix.python-version }}
58
+ run : uv run --frozen pytest
59
+
0 commit comments