1- name : Python Poetry Release
1+ name : Python uv Release
22
33on :
44 push :
1616 - name : Check out code
1717 uses : actions/checkout@v4
1818
19- - name : Set up Python
20- uses : actions/setup-python@v5
21- with :
22- python-version : ' 3.11'
23-
2419 - name : Set up GraalVM CE Java 11
2520 uses : graalvm/setup-graalvm@v1
2621 with :
@@ -32,21 +27,21 @@ jobs:
3227 - name : Install jq
3328 run : sudo apt-get update && sudo apt-get install -y jq
3429
35- - name : Install Poetry
36- run : |
37- curl -sSL https://install.python-poetry.org | python3 -
38- echo "${HOME}/.local/bin" >> $GITHUB_PATH
39- export PATH="${HOME}/.local/bin:$PATH"
30+ - name : Install uv
31+ uses : astral-sh/setup-uv@v4
32+ with :
33+ enable-cache : true
34+
35+ - name : Set up Python
36+ run : uv python install 3.11
4037
4138 - name : Install Python package dependencies
42- run : |
43- poetry config virtualenvs.create false
44- poetry install --sync --no-interaction
39+ run : uv sync --all-groups --frozen
4540
4641 - name : Run Tests
4742 id : test
4843 continue-on-error : true
49- run : poetry run make test
44+ run : uv run make test
5045
5146 - name : Delete tag on failure
5247 if : steps.test.conclusion == 'failure'
6459 mv codeanalyzer-*.jar ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/
6560
6661 - name : Build Package
67- run : poetry build
62+ run : uv build
6863
6964 - name : Read Changelog Entry
7065 id : changelog_reader
9287 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9388
9489 - name : Publish package distributions to PyPI
95- run : poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
90+ run : uv publish --token ${{ secrets.PYPI_API_TOKEN }}
0 commit comments