|
10 | 10 |
|
11 | 11 | env: |
12 | 12 | PY_COLORS: "1" |
13 | | - DEVCONTAINER_CONFIG_PATH: ".devcontainer" |
14 | 13 |
|
15 | 14 | jobs: |
16 | 15 | test: |
17 | 16 | # The action itself runs on ubuntu-latest, but the commands execute inside the dev container |
18 | 17 | 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 |
19 | 24 | steps: |
20 | 25 | - uses: actions/checkout@v4 |
21 | 26 |
|
22 | 27 | # 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 |
24 | 29 | uses: devcontainers/ci@v0.3 |
25 | 30 | 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 |
28 | 34 |
|
29 | | - - name: Check branch commits in dev container |
| 35 | + - name: Check branch commits |
30 | 36 | uses: devcontainers/ci@v0.3 |
31 | 37 | with: |
32 | | - configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }} |
33 | | - run: uv run poe check-commits |
| 38 | + runCmd: uv run poe check-commits |
34 | 39 |
|
35 | | - - name: Check Python code format in dev container |
| 40 | + - name: Check Python code format |
36 | 41 | uses: devcontainers/ci@v0.3 |
37 | 42 | with: |
38 | | - configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }} |
39 | | - run: uv run poe check-format |
| 43 | + runCmd: uv run poe check-format |
40 | 44 |
|
41 | | - - name: Lint Python code in dev container |
| 45 | + - name: Lint Python code |
42 | 46 | uses: devcontainers/ci@v0.3 |
43 | 47 | with: |
44 | | - configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }} |
45 | | - run: uv run poe lint |
| 48 | + runCmd: uv run poe lint |
46 | 49 |
|
47 | | - - name: Do type checking for Python code in dev container |
| 50 | + - name: Do type checking for Python code |
48 | 51 | uses: devcontainers/ci@v0.3 |
49 | 52 | with: |
50 | | - configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }} |
51 | | - run: uv run poe check-types |
| 53 | + runCmd: uv run poe check-types |
52 | 54 |
|
53 | | - - name: Run tests in dev container |
| 55 | + - name: Run tests |
54 | 56 | uses: devcontainers/ci@v0.3 |
55 | 57 | with: |
56 | | - configPath: ${{ env.DEVCONTAINER_CONFIG_PATH }} |
57 | | - run: uv run poe test |
| 58 | + runCmd: uv run poe test |
0 commit comments