@@ -36,41 +36,36 @@ 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+ make venv
5445
5546 - name : Generate OpenAPI Schema
5647 run : |
57- poetry run python -m syncmaster.server.scripts.export_openapi_schema docs/_static/ openapi.json
48+ make docs- openapi
5849
5950 - name : Fix logo in Readme
6051 run : |
6152 sed -i "s#image:: docs/#image:: https://raw.githubusercontent.com/MobileTeleSystems/syncmaster/$GITHUB_SHA/docs/#g" README.rst
6253 sed -i "s#logo_wide_red_text.svg#logo_wide.svg#g" README.rst
6354
55+ - name : Patch version template
56+ # Due to change above, git stage area is dirty, so we need to patch the template
57+ run : sed -i 's#dirty_template = ".*"#dirty_template = "{tag}"#' pyproject.toml
58+
6459 - name : Build package
65- run : poetry build
60+ run : uv build
6661
6762 - name : Publish package
6863 uses : pypa/gh-action-pypi-publish@release/v1
6964
7065 - name : Generate SBOM
7166 run : |
72- pip install cyclonedx-bom
73- cyclonedx-py poetry --extras server,scheduler,worker --without dev,test,docs > sbom.cyclonedx.json
67+ uv pip install cyclonedx-bom
68+ uv export --all- extras --format requirements.txt | uv run cyclonedx-py requirements - > sbom.cyclonedx.json
7469
7570 - name : Get changelog
7671 run : |
0 commit comments