Skip to content

Commit 1b7004c

Browse files
committed
Migrate the test-redistribution workflow to uv
1 parent aa18c4b commit 1b7004c

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/test-redistribute.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,21 @@ jobs:
1919
run: echo "$GITHUB_CONTEXT"
2020
- uses: actions/checkout@v5
2121
- name: Set up Python
22-
uses: actions/setup-python@v5
22+
uses: actions/setup-python@v6
2323
with:
24-
python-version: "3.10"
25-
# Issue ref: https://github.com/actions/setup-python/issues/436
26-
# cache: "pip"
27-
# cache-dependency-path: pyproject.toml
28-
- name: Install build dependencies
29-
run: pip install build
24+
python-version-file: "pyproject.toml"
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v7
3027
- name: Build source distribution
31-
run: python -m build --sdist
28+
run: uv build --sdist
3229
- name: Decompress source distribution
3330
run: |
3431
cd dist
3532
tar xvf fastapi_cloud_cli*.tar.gz
3633
- name: Install test dependencies
3734
run: |
3835
cd dist/fastapi_cloud_cli*/
39-
pip install -r requirements-tests.txt
40-
env:
41-
TIANGOLO_BUILD_PACKAGE: ${{ matrix.package }}
36+
pip install --group dev .
4237
- name: Run source distribution tests
4338
run: |
4439
cd dist/fastapi_cloud_cli*/

0 commit comments

Comments
 (0)