|
12 | 12 |
|
13 | 13 | jobs:
|
14 | 14 | python-source:
|
15 |
| - runs-on: ubuntu-latest |
| 15 | + runs-on: ${{ matrix.operating-system }} |
16 | 16 | strategy:
|
17 | 17 | matrix:
|
18 | 18 | python-version: ["3.9", "3.10", "3.11", "3.12"]
|
| 19 | + settings-module: ["single_db", "multi_db"] |
| 20 | + operating-system: ["ubuntu-latest", "windows-latest"] |
19 | 21 | steps:
|
20 | 22 | - uses: actions/checkout@v4
|
21 | 23 | - uses: oven-sh/setup-bun@v2
|
|
28 | 30 | - name: Install Python Dependencies
|
29 | 31 | run: pip install --upgrade pip hatch uv
|
30 | 32 | - name: Run Single DB Tests
|
31 |
| - run: hatch test --python ${{ matrix.python-version }} --ds=test_app.settings_single_db -v |
32 |
| - |
33 |
| - python-source-multi-db: |
34 |
| - runs-on: ubuntu-latest |
35 |
| - strategy: |
36 |
| - matrix: |
37 |
| - python-version: ["3.9", "3.10", "3.11", "3.12"] |
38 |
| - steps: |
39 |
| - - uses: actions/checkout@v4 |
40 |
| - - uses: oven-sh/setup-bun@v2 |
41 |
| - with: |
42 |
| - bun-version: latest |
43 |
| - - name: Use Python ${{ matrix.python-version }} |
44 |
| - uses: actions/setup-python@v5 |
45 |
| - with: |
46 |
| - python-version: ${{ matrix.python-version }} |
47 |
| - - name: Install Python Dependencies |
48 |
| - run: pip install --upgrade pip hatch uv |
49 |
| - - name: Run Multi-DB Tests |
50 |
| - run: hatch test --python ${{ matrix.python-version }} --ds=test_app.settings_multi_db -v |
| 33 | + run: hatch test --python ${{ matrix.python-version }} --ds=test_app.settings_${{matrix.settings-module}} -v |
51 | 34 |
|
52 | 35 | python-formatting:
|
53 | 36 | runs-on: ubuntu-latest
|
|
76 | 59 | python-version: 3.x
|
77 | 60 | - name: Install Python Dependencies
|
78 | 61 | run: pip install --upgrade pip hatch uv
|
79 |
| - - name: Check Python formatting |
| 62 | + - name: Run Python type checker |
80 | 63 | run: hatch run python:type_check
|
0 commit comments