Skip to content

Commit

Permalink
Update setup-uv action to v4, change --extra flag to --group
Browse files Browse the repository at this point in the history
Finishes migration to PEP735 dependency groups.
  • Loading branch information
nicholasjng committed Dec 20, 2024
1 parent 3973851 commit 6e87aab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: Install Python 3.10 interpreter
run: uv python install 3.10
- name: Install the project
run: uv sync --extra dev
run: uv sync --group dev
- name: Run pre-commit checks
run: uvx pre-commit run --all-files --verbose --show-diff-on-failure
test:
Expand All @@ -33,11 +33,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install the project in developer mode
run: uv sync --extra dev
run: uv sync --group dev
- name: Execute python tests
run: uv run pytest -s
docs:
Expand All @@ -48,11 +48,11 @@ jobs:
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: Install Python 3.11 interpreter
run: uv python install 3.11
- name: Install the project
run: uv sync --extra docs
run: uv sync --group docs
- name: Build documentation using mike
uses: ./.github/actions/mike-docs
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v4
- name: Install Python 3.11 interpreter
run: uv python install 3.11
- name: Install the project
run: uv sync --all-extras
run: uv sync --all-groups
- name: Build and check
run: uv run -m build
- name: Upload build artifacts
Expand Down

0 comments on commit 6e87aab

Please sign in to comment.