Skip to content

Commit

Permalink
Use uv more broadly
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jan 31, 2025
1 parent 096869a commit a7c82a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/api-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
FORCE_COLOR: 1
UV_VERSION: 0.5.26

permissions: # added using https://github.com/step-security/secure-repo
contents: read

Expand All @@ -32,13 +36,17 @@ jobs:
with:
python-version: 3.x

- uses: astral-sh/setup-uv@v5
with:
version: ${{ env.UV_VERSION }}

- name: Install tools
env:
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/resources/requirements.txt
UV_CONSTRAINT: ${{ github.workspace }}/.github/workflows/resources/requirements.txt
run: |
python -Im pip install -U pip
pipx install griffe nox
pipx list
uv tool install griffe
uv tool install nox
uv tool list
- name: Set REF
id: set-ref
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,4 +287,4 @@ def api_changes(session: nox.Session) -> None:
if "GITHUB_ACTIONS" in os.environ:
args.append("-f=github")

session.run(*args, external=True)
session.run("uv", "tool", "run", *args, external=True)

0 comments on commit a7c82a7

Please sign in to comment.