1010
1111# TODO: BuildX and publish to use as in order for web to always be able to fetch image to matching branch?
1212jobs :
13-
1413 run-tests-with-coverage :
1514 runs-on : ubuntu-24.04
1615 strategy :
@@ -21,40 +20,37 @@ jobs:
2120 - name : Checkout code
2221 uses : actions/checkout@v5
2322
24- - name : Install Poetry
25- run : pipx install poetry==1.8.4
26-
27- - name : Setup Python ${{ matrix.python-version }}
28- uses : actions/setup-python@v5
23+ - name : Install uv
24+ uses : astral-sh/setup-uv@v6
2925 with :
26+ enable-cache : true
3027 python-version : ${{ matrix.python-version }}
31- cache : ' poetry'
3228
33- - name : Check pyproject.toml validity
34- run : poetry check --no-interaction
29+ - name : Set up Python
30+ run : uv python install
3531
36- - name : Install deps
37- run : poetry install --no-interaction
32+ - name : Install the project
33+ run : uv sync --locked --all-extras --dev
3834
3935 - name : List pydantic version
40- run : poetry show pydantic
36+ run : uv pip show pydantic
4137
4238 - name : Run tests with coverage
43- run : poetry run python -m coverage run -m pytest -n auto
39+ run : uv run python -m coverage run -m pytest -n auto
4440
4541 - name : Get Test Coverage score
4642 id : total
4743 if : matrix.python-version == '3.11'
4844 run : |
49- poetry run python -m coverage report --fail-under 40
50- poetry run python -m coverage html -d build/
51- poetry run python -m coverage json -o build/coverage.json
45+ uv run python -m coverage report --fail-under 40
46+ uv run python -m coverage html -d build/
47+ uv run python -m coverage json -o build/coverage.json
5248 echo '# Code Coverage Report\n See the index.html for a more detailed report.\n' >> build/README.md
53- echo "$(poetry run python -m coverage report --format=markdown)" >> build/README.md
49+ echo "$(uv run python -m coverage report --format=markdown)" >> build/README.md
5450 rm build/.gitignore
5551
5652 - name : Build artifacts
57- run : poetry build
53+ run : uv build
5854
5955 - name : Push coverage report to coverage-report branch
6056 if : github.ref == 'refs/heads/main' && matrix.python-version == '3.11'
0 commit comments