Skip to content

Commit cd17eae

Browse files
committed
Switches GitHub actions from pip to uv
1 parent 9f5f95b commit cd17eae

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/python-pr.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v5
18+
1619
- name: Set up Python ${{ matrix.python-version }}
1720
uses: actions/setup-python@v5
1821
with:
1922
python-version: ${{ matrix.python-version }}
2023

2124
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install tox tox-gh-actions
25+
run: uv pip install tox tox-gh-actions tox-uv --system
26+
2527
- name: Test with tox without uploading coverage
2628
run: tox

.github/workflows/python-tox.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ jobs:
2727
echo "CODECOV_BRANCH=$(echo ${GITHUB_HEAD_REF} | tr / -)" \
2828
>> $GITHUB_ENV
2929
30+
- name: Install uv
31+
uses: astral-sh/setup-uv@v5
32+
3033
- name: Set up Python ${{ matrix.python-version }}
3134
uses: actions/setup-python@v5
3235
with:
3336
python-version: ${{ matrix.python-version }}
3437

3538
- name: Install dependencies
36-
run: |
37-
python -m pip install --upgrade pip
38-
pip install tox tox-gh-actions
39+
run: uv pip install tox tox-gh-actions tox-uv --system
3940

4041
- name: Test with tox and upload coverage results
4142
run: tox -- --codecov --codecov-token=${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)