Skip to content

Commit 509107d

Browse files
authored
fix(workflow): allow uv sync to jointly resolve python version and dependencies (#337)
1 parent b67a097 commit 509107d

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [main]
6+
branches: [main]
77
pull_request:
88
jobs:
99
build:
@@ -15,8 +15,6 @@ jobs:
1515
with:
1616
enable-cache: true
1717
cache-dependency-glob: uv.lock
18-
- name: Setup python
19-
uses: uv python install
2018
- name: Install the project
2119
run: uv sync --locked --all-extras --dev
2220
- name: Lint check
@@ -25,9 +23,11 @@ jobs:
2523
uv run ruff .
2624
- name: Test
2725
run: |
28-
uv run pytest -rA --cov-report=xml
29-
- uses: codecov/codecov-action@v5
30-
with:
31-
token: ${{ secrets.CODECOV_TOKEN }}
32-
fail_ci_if_error: true
33-
verbose: true
26+
uv run pytest
27+
# run: |
28+
# uv run pytest -rA --cov-report=xml
29+
# - uses: codecov/codecov-action@v5
30+
# with:
31+
# token: ${{ secrets.CODECOV_TOKEN }}
32+
# fail_ci_if_error: true
33+
# verbose: true

.github/workflows/documentation.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jobs:
2424
with:
2525
enable-cache: true
2626
cache-dependency-glob: uv.lock
27-
- name: Set up Python
28-
run: uv python install
2927
- name: Install project + dev deps
3028
run: uv sync --locked --all-extras --dev
3129
- name: Build documentation

.python-version

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

0 commit comments

Comments
 (0)