@@ -36,41 +36,37 @@ jobs:
3636 with :
3737 python-version : ${{ env.DEFAULT_PYTHON }}
3838
39- - name : Install poetry
40- uses : snok/install-poetry@v1
41-
42- - name : Cache poetry
43- uses : actions/cache@v5
44- with :
45- path : ~/.cache/pypoetry
46- key : ${{ runner.os }}-python-${{ env.DEFAULT_PYTHON }}-release-${{ hashFiles('**/poetry.lock') }}
47- restore-keys : |
48- ${{ runner.os }}-python-${{ env.DEFAULT_PYTHON }}-release-${{ hashFiles('**/poetry.lock') }}
49- ${{ runner.os }}-python-
39+ - name : Install uv
40+ uses : astral-sh/setup-uv@v7
5041
5142 - name : Install dependencies
5243 run : |
53- poetry install --no-root --all-extras --without test,dev,docs
44+ export UV=$(which uv)
45+ make venv-install
5446
5547 - name : Generate OpenAPI Schema
5648 run : |
57- poetry run python -m syncmaster.server.scripts.export_openapi_schema docs/_static/ openapi.json
49+ make docs- openapi
5850
5951 - name : Fix logo in Readme
6052 run : |
6153 sed -i "s#image:: docs/#image:: https://raw.githubusercontent.com/MobileTeleSystems/syncmaster/$GITHUB_SHA/docs/#g" README.rst
6254 sed -i "s#logo_wide_red_text.svg#logo_wide.svg#g" README.rst
6355
56+ - name : Patch version template
57+ # Due to change above, git stage area is dirty, so we need to patch the template
58+ run : sed -i 's#dirty_template = ".*"#dirty_template = "{tag}"#' pyproject.toml
59+
6460 - name : Build package
65- run : poetry build
61+ run : uv build
6662
6763 - name : Publish package
6864 uses : pypa/gh-action-pypi-publish@release/v1
6965
7066 - name : Generate SBOM
7167 run : |
72- pip install cyclonedx-bom
73- cyclonedx-py poetry --extras server,scheduler,worker --without dev,test,docs > sbom.cyclonedx.json
68+ uv pip install cyclonedx-bom
69+ uv export --all- extras --format requirements.txt | uv run cyclonedx-py requirements - > sbom.cyclonedx.json
7470
7571 - name : Get changelog
7672 run : |
0 commit comments