Skip to content

Commit

Permalink
Merge pull request #467 from jakob-keller/uv-in-github-workflows
Browse files Browse the repository at this point in the history
Fully leverage uv in GitHub workflows
  • Loading branch information
jakob-keller authored Dec 22, 2024
2 parents c9c1dd4 + cdc6870 commit 22aeaea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
pages: write
id-token: write
env:
UV_PYTHON_PREFERENCE: only-system
UV_FROZEN: 1
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
Expand All @@ -40,14 +40,7 @@ jobs:
fetch-depth: 0
- id: uv
name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
version: "0.5.7"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
uses: astral-sh/setup-uv@v5
- id: cz
name: Create bump and changelog
uses: commitizen-tools/[email protected]
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,15 @@ jobs:
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
env:
PYTHON: ${{ matrix.python-version }}
UV_PYTHON_PREFERENCE: only-system
UV_LOCKED: 1
UV_FROZEN: 1
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
version: "0.5.7"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Check code formatting
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ target/
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13.1

0 comments on commit 22aeaea

Please sign in to comment.