Skip to content

Commit ae85901

Browse files
committed
better matrix generation
1 parent 758a9c5 commit ae85901

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/test-python.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ on:
1212

1313
jobs:
1414
python-source:
15-
runs-on: ubuntu-latest
15+
runs-on: ${{ matrix.operating_system }}
1616
strategy:
1717
matrix:
1818
python-version: ["3.9", "3.10", "3.11", "3.12"]
19-
settings_module:
20-
[
21-
"test_app.settings_single_db",
22-
"test_app.settings_multi_db",
23-
]
19+
settings_module: ["single_db", "multi_db"]
20+
operating_system:
21+
["ubuntu-latest", "macos-latest", "windows-latest"]
2422
steps:
2523
- uses: actions/checkout@v4
2624
- uses: oven-sh/setup-bun@v2
@@ -33,7 +31,7 @@ jobs:
3331
- name: Install Python Dependencies
3432
run: pip install --upgrade pip hatch uv
3533
- name: Run Single DB Tests
36-
run: hatch test --python ${{ matrix.python-version }} --ds=${{matrix.settings_module}} -v
34+
run: hatch test --python ${{ matrix.python-version }} --ds=test_app.settings_${{matrix.settings_module}} -v
3735

3836
python-formatting:
3937
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)