Skip to content

Commit 9205478

Browse files
committed
fixes python version
1 parent c62dbce commit 9205478

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

.github/workflows/build-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
build:
1212
name: Build package
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04 # Provides system Python 3.10
1414

1515
steps:
1616
- uses: actions/checkout@v4
@@ -36,7 +36,7 @@ jobs:
3636
publish:
3737
name: Publish package
3838
needs: build
39-
runs-on: ubuntu-latest
39+
runs-on: ubuntu-22.04
4040

4141
steps:
4242
- name: Download build artifacts

.github/workflows/lint-test.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,25 @@ on:
88
workflow_call:
99

1010
jobs:
11+
prepare:
12+
runs-on: ubuntu-22.04 # Provides system Python 3.10
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v4
16+
17+
- name: setup Python v3.10 with uv
18+
uses: astral-sh/setup-uv@v6
19+
with:
20+
python-version: '3.10'
21+
enable-cache: true
22+
23+
- name: install packages
24+
run: uv pip install -r pyproject.toml --extra testing --system
25+
26+
27+
1128
lint:
12-
runs-on: ubuntu-latest
29+
runs-on: ubuntu-22.04 # Provides system Python 3.10
1330

1431
steps:
1532
- name: checkout
@@ -30,7 +47,7 @@ jobs:
3047
run: ruff format --check ./src ./tests
3148

3249
test:
33-
runs-on: ubuntu-latest
50+
runs-on: ubuntu-22.04 # Provides system Python 3.10
3451

3552
steps:
3653

0 commit comments

Comments
 (0)