1- # This workflow will install Python dependencies, run tests and lint using pixi
1+ # This workflow will install Python dependencies, run tests and lint using uv
22# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33
44name : Python application
@@ -19,46 +19,49 @@ jobs:
1919 fail-fast : false
2020 matrix :
2121 include :
22- - python-version : " py38 "
22+ - python-version : " 3.8 "
2323 os : ubuntu-latest
24- - python-version : " py39 "
24+ - python-version : " 3.9 "
2525 os : ubuntu-latest
26- - python-version : " py310 "
26+ - python-version : " 3.10 "
2727 os : ubuntu-latest
28- - python-version : " py311 "
28+ - python-version : " 3.11 "
2929 os : ubuntu-latest
30- - python-version : " py312 "
30+ - python-version : " 3.12 "
3131 os : ubuntu-latest
32- - python-version : " py313 "
32+ - python-version : " 3.13 "
3333 os : ubuntu-latest
34- - python-version : " py314 "
34+ - python-version : " 3.14 "
3535 os : ubuntu-latest
3636 # Test on additional platforms for Python 3.11
37- - python-version : " py311 "
37+ - python-version : " 3.11 "
3838 os : macos-latest
39- - python-version : " py311 "
39+ - python-version : " 3.11 "
4040 os : windows-latest
4141
4242 steps :
4343 - uses : actions/checkout@v4
4444
45- - name : Setup pixi
46- uses : prefix-dev /setup-pixi@v0.8.1
45+ - name : Setup uv
46+ uses : astral-sh /setup-uv@v5
4747 with :
48- pixi-version : v0.55.0
49- cache : true
48+ enable-cache : true
49+ python-version : ${{ matrix.python-version }}
5050
5151 - name : Install dependencies and run tests
52- run : pixi run test-${{ matrix.python-version }}
52+ run : uv run --group dev pytest tests/
5353
5454 - name : Run lint (Python 3.11 only)
55- if : matrix.python-version == 'py311 ' && matrix.os == 'ubuntu-latest'
56- run : pixi run lint
55+ if : matrix.python-version == '3.11 ' && matrix.os == 'ubuntu-latest'
56+ run : uv run --group dev flake8 sqlparse/
5757
5858 - name : Generate coverage report (Python 3.11 only)
59- if : matrix.python-version == 'py311' && matrix.os == 'ubuntu-latest'
60- run : pixi run -e py311 coverage && pixi run -e py311 coverage-combine && pixi run -e py311 coverage-xml
59+ if : matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
60+ run : |
61+ uv run --group dev coverage run -m pytest tests/
62+ uv run --group dev coverage combine
63+ uv run --group dev coverage xml
6164
6265 - name : Publish to codecov
63- if : matrix.python-version == 'py311 ' && matrix.os == 'ubuntu-latest'
66+ if : matrix.python-version == '3.11 ' && matrix.os == 'ubuntu-latest'
6467 uses : codecov/codecov-action@v4
0 commit comments