77 - main
88
99jobs :
10- test :
10+ build :
1111 runs-on : ubuntu-latest
1212 strategy :
1313 fail-fast : false
1414 matrix :
1515 python-version : [ "3.13" ]
16- poetry-version : [ "1.8.5" ]
1716
1817 env :
1918 PYTHONDONTWRITEBYTECODE : 1
2019 PYTHONUNBUFFERED : 1
2120 POSTGRES_DB : testdb
2221 POSTGRES_HOST : 127.0.0.1
23- POSTGRES_USER : app-user
22+ POSTGRES_USER : panettone
2423 POSTGRES_PASSWORD : secret
2524 PGPASSWORD : secret
2625 REDIS_HOST : 127.0.0.1
3736 sqldb :
3837 image : postgres:16
3938 env :
40- POSTGRES_USER : app-user
39+ POSTGRES_USER : panettone
4140 POSTGRES_PASSWORD : secret
4241 POSTGRES_DB : testdb
4342 ports :
@@ -48,18 +47,13 @@ jobs:
4847 steps :
4948 - uses : actions/checkout@v4
5049 - 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
5354 with :
5455 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