@@ -18,14 +18,17 @@ jobs:
1818 with :
1919 ref : ${{ github.event.release.target_commitish }}
2020
21+ - name : Install uv
22+ uses : astral-sh/setup-uv@v7
23+ with :
24+ version : " 0.9.28"
25+ enable-cache : true
26+
2127 - name : Use Python 3.9
2228 uses : actions/setup-python@v6
2329 with :
2430 python-version : " 3.9"
2531
26- - name : Install Poetry
27- run : python -m pip install poetry==1.8.5
28-
2932 - name : Configure Git
3033 run : |
3134 git config --global user.name "GitHub Release Bot"
@@ -38,27 +41,24 @@ jobs:
3841 echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
3942
4043 - name : Update Package Version
41- run : poetry version "${VERSION}"
42-
43- - name : Install Dependencies
44- run : poetry install
44+ run : uv version "${VERSION}"
4545
4646 - name : Run Tests
47- run : poetry run pytest tests/ -q -m "not live"
47+ run : uv run pytest tests/ -q -m "not live"
4848
4949 - name : Run Import Smoke Test
5050 run : |
51- poetry run python -c "from tardis_dev import DEFAULT_ENDPOINT, DEFAULT_DATASETS_ENDPOINT, DEFAULT_CACHE_DIR, Channel, Response, replay, download_datasets, download_datasets_async, get_exchange_details, get_exchange_details_async, clear_cache, default_file_name; print('OK')"
51+ uv run python -c "from tardis_dev import DEFAULT_ENDPOINT, DEFAULT_DATASETS_ENDPOINT, DEFAULT_CACHE_DIR, Channel, Response, replay, download_datasets, download_datasets_async, get_exchange_details, get_exchange_details_async, clear_cache, default_file_name; print('OK')"
5252
5353 - name : Build Package
54- run : poetry build
54+ run : uv build --no-sources
5555
5656 - name : Publish Package
57- run : poetry publish -u __token__ -p "${{ secrets.PYPI_TOKEN }}"
57+ run : uv publish --token "${{ secrets.PYPI_TOKEN }}" --no-attestations
5858
5959 - name : Commit Version Changes
6060 run : |
61- git add pyproject.toml
61+ git add pyproject.toml uv.lock
6262 git diff --cached --quiet && exit 0
6363 git commit -m "bump version to ${VERSION}"
6464
0 commit comments