Skip to content

Commit 22aeaea

Browse files
authored
Merge pull request #467 from jakob-keller/uv-in-github-workflows
Fully leverage uv in GitHub workflows
2 parents c9c1dd4 + cdc6870 commit 22aeaea

File tree

4 files changed

+5
-20
lines changed

4 files changed

+5
-20
lines changed

β€Ž.github/workflows/release.ymlβ€Ž

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
pages: write
3030
id-token: write
3131
env:
32-
UV_PYTHON_PREFERENCE: only-system
32+
UV_FROZEN: 1
3333
steps:
3434
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
3535
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
@@ -40,14 +40,7 @@ jobs:
4040
fetch-depth: 0
4141
- id: uv
4242
name: Install uv
43-
uses: astral-sh/setup-uv@v4
44-
with:
45-
enable-cache: true
46-
version: "0.5.7"
47-
- name: Set up Python
48-
uses: actions/setup-python@v5
49-
with:
50-
python-version-file: "pyproject.toml"
43+
uses: astral-sh/setup-uv@v5
5144
- id: cz
5245
name: Create bump and changelog
5346
uses: commitizen-tools/[email protected]

β€Ž.github/workflows/test.ymlβ€Ž

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,15 @@ jobs:
1515
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
1616
env:
1717
PYTHON: ${{ matrix.python-version }}
18-
UV_PYTHON_PREFERENCE: only-system
19-
UV_LOCKED: 1
18+
UV_FROZEN: 1
2019
steps:
2120
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
2221
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
2322
- run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
2423
- name: Check out repository code
2524
uses: actions/checkout@v4
2625
- name: Install uv
27-
uses: astral-sh/setup-uv@v4
28-
with:
29-
enable-cache: true
30-
version: "0.5.7"
31-
- name: Set up Python ${{ matrix.python-version }}
32-
uses: actions/setup-python@v5
26+
uses: astral-sh/setup-uv@v5
3327
with:
3428
python-version: ${{ matrix.python-version }}
3529
- name: Check code formatting

β€Ž.gitignoreβ€Ž

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ target/
8181
profile_default/
8282
ipython_config.py
8383

84-
# pyenv
85-
.python-version
86-
8784
# pipenv
8885
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
8986
# However, in case of collaboration, if having platform-specific dependencies or dependencies

β€Ž.python-versionβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13.1

0 commit comments

Comments
Β (0)