Skip to content

Commit 9f29f59

Browse files
committed
Fix python version variable in ci
1 parent b205efc commit 9f29f59

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/build-deploy-docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
UV_NO_SYNC: 1
11+
PYTHON_VERSION: 3.13
1112

1213
jobs:
1314
build-deploy-doc:
@@ -23,10 +24,10 @@ jobs:
2324
- name: Set up uv
2425
uses: astral-sh/setup-uv@v5
2526
with:
26-
python-version: '3.13'
27+
python-version: ${{ PYTHON_VERSION }}
2728

2829
- name: Install dependencies (default with full options & doc)
29-
run: uv pip install --python-version=${{ inputs.python-version }} '.[full]' --group doc
30+
run: uv pip install --python-version=${{ PYTHON_VERSION }} '.[full]' --group doc
3031

3132
- name: Determine deployment folder
3233
id: deploy_folder

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
env:
8+
PYTHON_VERSION: 3.13
9+
710
jobs:
811
pypi-publish:
912
name: Publish to PyPI
@@ -19,7 +22,7 @@ jobs:
1922
- name: Set up uv
2023
uses: astral-sh/setup-uv@v5
2124
with:
22-
python-version: '3.13'
25+
python-version: ${{ PYTHON_VERSION }}
2326

2427
- name: Build
2528
run: uv build

.github/workflows/tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
UV_NO_SYNC: 1
11+
PYTHON_VERSION: 3.13
1112

1213
jobs:
1314
tests-full-install:
@@ -26,7 +27,7 @@ jobs:
2627
with:
2728
python-version: ${{ matrix.python-version }}
2829
- name: Install default (with full options) and test dependencies
29-
run: uv pip install --python-version=${{ inputs.python-version }} '.[full]' --group test
30+
run: uv pip install --python-version=${{ matrix.python-version }} '.[full]' --group test
3031
- name: Run unit and doc tests with coverage report
3132
run: uv run pytest -W error tests/unit tests/doc --cov=src --cov-report=xml
3233
- name: Upload results to Codecov
@@ -42,9 +43,9 @@ jobs:
4243
- name: Set up uv
4344
uses: astral-sh/setup-uv@v5
4445
with:
45-
python-version: '3.13'
46+
python-version: ${{ PYTHON_VERSION }}
4647
- name: Install default (without any option) and test dependencies
47-
run: uv pip install --python-version=${{ inputs.python-version }} . --group test
48+
run: uv pip install --python-version=${{ PYTHON_VERSION }} . --group test
4849
- name: Run unit and doc tests with coverage report
4950
run: |
5051
uv run pytest -W error tests/unit tests/doc \
@@ -67,10 +68,10 @@ jobs:
6768
- name: Set up uv
6869
uses: astral-sh/setup-uv@v5
6970
with:
70-
python-version: '3.13'
71+
python-version: ${{ PYTHON_VERSION }}
7172

7273
- name: Install dependencies (default with full options & doc)
73-
run: uv pip install --python-version=${{ inputs.python-version }} '.[full]' --group doc
74+
run: uv pip install --python-version=${{ PYTHON_VERSION }} '.[full]' --group doc
7475

7576
- name: Build Documentation
7677
working-directory: docs
@@ -86,10 +87,10 @@ jobs:
8687
- name: Set up uv
8788
uses: astral-sh/setup-uv@v5
8889
with:
89-
python-version: '3.13'
90+
python-version: ${{ PYTHON_VERSION }}
9091

9192
- name: Install dependencies (default with full options & check)
92-
run: uv pip install --python-version=${{ inputs.python-version }} '.[full]' --group check
93+
run: uv pip install --python-version=${{ PYTHON_VERSION }} '.[full]' --group check
9394

9495
- name: Run mypy
9596
run: uv run mypy src/torchjd

0 commit comments

Comments
 (0)