Skip to content

Commit f377191

Browse files
committed
ci: update with correct settings
1 parent eee3360 commit f377191

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,49 @@ on:
1010

1111
env:
1212
PY_COLORS: "1"
13-
DEVCONTAINER_CONFIG_PATH: ".devcontainer"
1413

1514
jobs:
1615
test:
1716
# The action itself runs on ubuntu-latest, but the commands execute inside the dev container
1817
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
python-version: ['3.10'] #'3.11', '3.12', '3.13']
22+
23+
name: Python ${{ matrix.python-version }} Tests
1924
steps:
2025
- uses: actions/checkout@v4
2126

2227
# Use the devcontainers/ci action to run steps inside the container
23-
- name: Install the project in dev container
28+
- name: Install Python ${{ matrix.python-version }} and project dependencies
2429
uses: devcontainers/ci@v0.3
2530
with:
26-
configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }}
27-
run: uv sync --all-extras --dev
31+
runCmd: |
32+
uv venv -p ${{ matrix.python-version }}
33+
uv sync --all-extras --dev
2834
29-
- name: Check branch commits in dev container
35+
- name: Check branch commits
3036
uses: devcontainers/ci@v0.3
3137
with:
32-
configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }}
33-
run: uv run poe check-commits
38+
runCmd: uv run poe check-commits
3439

35-
- name: Check Python code format in dev container
40+
- name: Check Python code format
3641
uses: devcontainers/ci@v0.3
3742
with:
38-
configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }}
39-
run: uv run poe check-format
43+
runCmd: uv run poe check-format
4044

41-
- name: Lint Python code in dev container
45+
- name: Lint Python code
4246
uses: devcontainers/ci@v0.3
4347
with:
44-
configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }}
45-
run: uv run poe lint
48+
runCmd: uv run poe lint
4649

47-
- name: Do type checking for Python code in dev container
50+
- name: Do type checking for Python code
4851
uses: devcontainers/ci@v0.3
4952
with:
50-
configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }}
51-
run: uv run poe check-types
53+
runCmd: uv run poe check-types
5254

53-
- name: Run tests in dev container
55+
- name: Run tests
5456
uses: devcontainers/ci@v0.3
5557
with:
56-
configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }}
57-
run: uv run poe test
58+
runCmd: uv run poe test

0 commit comments

Comments
 (0)