|
6 | 6 | pull_request: |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - test-on-linux: |
10 | | - runs-on: ubuntu-latest |
11 | | - strategy: |
12 | | - matrix: |
13 | | - # python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] |
14 | | - py-version: ["3.9", "3.10"] |
15 | | - name: Linux - Python ${{ matrix.py-version }} |
16 | | - |
17 | | - steps: |
18 | | - - uses: actions/checkout@v4 |
19 | | - - uses: docker/setup-compose-action@v1 |
20 | | - |
21 | | - - name: Run tests in Docker |
22 | | - env: |
23 | | - REPO_ROOT: ${{ github.workspace }} |
24 | | - run: | |
25 | | - make test ${{ matrix.py-version}} |
26 | | -
|
27 | | - # test-windows: |
28 | | - # runs-on: windows-latest |
| 9 | + # test-on-linux: |
| 10 | + # runs-on: ubuntu-latest |
29 | 11 | # strategy: |
30 | 12 | # matrix: |
31 | | - # py-version: ["3.9", "3.10"] |
32 | | - # name: Windows - Python ${{ matrix.py-version }} |
| 13 | + # # python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] |
| 14 | + # py-version: ["3.10"] |
| 15 | + # name: Linux - Python ${{ matrix.py-version }} |
33 | 16 |
|
34 | 17 | # steps: |
35 | | - # - name: Checkout code |
36 | | - # uses: actions/checkout@v4 |
| 18 | + # - uses: actions/checkout@v4 |
| 19 | + # - uses: docker/setup-compose-action@v1 |
37 | 20 |
|
38 | | - # - name: Set up Python |
39 | | - # uses: actions/setup-python@v5 |
40 | | - # with: |
41 | | - # python-version: ${{ matrix.py-version }} |
42 | | - |
43 | | - # - name: Install dependencies |
| 21 | + # - name: Run tests in Docker |
| 22 | + # env: |
| 23 | + # REPO_ROOT: ${{ github.workspace }} |
44 | 24 | # run: | |
45 | | - # python -m pip install --upgrade pip |
46 | | - # pip install meson ninja pytest |
47 | | - # shell: powershell |
| 25 | + # make test ${{ matrix.py-version}} |
| 26 | + |
| 27 | + test-on-windows: |
| 28 | + runs-on: windows-latest |
| 29 | + strategy: |
| 30 | + matrix: |
| 31 | + py-version: ["3.10"] |
| 32 | + name: Windows - Python ${{ matrix.py-version }} |
48 | 33 |
|
49 | | - # - name: Setup Visual Studio Developer Command Prompt |
50 | | - # uses: ilammy/msvc-dev-cmd@v1 |
| 34 | + steps: |
| 35 | + - uses: actions/checkout@v4 |
51 | 36 |
|
52 | | - # - name: Configure and build with Meson (MSVC) |
53 | | - # run: | |
54 | | - # meson setup builddir |
55 | | - # meson compile -C builddir |
56 | | - # shell: powershell |
| 37 | + - uses: actions/setup-python@v5 |
| 38 | + with: |
| 39 | + python-version: ${{ matrix.py-version }} |
57 | 40 |
|
58 | | - # - name: Run tests |
59 | | - # run: | |
60 | | - # pytest tests |
61 | | - # shell: powershell |
| 41 | + - name: Install dependencies |
| 42 | + shell: powershell |
| 43 | + run: | |
| 44 | + python -m pip install --upgrade pip |
| 45 | + pip install -r tests/requirements.txt |
| 46 | +
|
| 47 | + - name: Setup Visual Studio Developer Command Prompt |
| 48 | + uses: ilammy/msvc-dev-cmd@v1 |
| 49 | + |
| 50 | + - name: Run tests |
| 51 | + shell: powershell |
| 52 | + run: | |
| 53 | + pytest tests |
0 commit comments