|
21 | 21 | - ubuntu-24.04-arm |
22 | 22 | - macos-15 |
23 | 23 | - macos-15-intel |
24 | | - - windows-2025 |
25 | | - - windows-11-arm |
26 | 24 | python-version: |
27 | 25 | - '3.11' |
28 | 26 | - '3.12' |
|
33 | 31 | steps: |
34 | 32 | - name: Checkout code |
35 | 33 | uses: actions/checkout@v6 |
| 34 | + with: |
| 35 | + submodules: recursive |
36 | 36 |
|
37 | 37 | - name: Set up Python |
38 | 38 | uses: actions/setup-python@v6 |
|
43 | 43 | run: | |
44 | 44 | python -m pip install --upgrade pip |
45 | 45 | python -m pip install setuptools wheel build cython |
46 | | - python -m pip install flake8, mypy, pytest |
| 46 | + python -m pip install flake8 mypy pytest |
47 | 47 |
|
48 | 48 | - name: Build wheel and source tarball |
49 | 49 | run: | |
|
64 | 64 | - name: Test code with pytest |
65 | 65 | run: | |
66 | 66 | python -m pytest ./python --doctest-modules |
| 67 | +
|
| 68 | + test-on-windows: |
| 69 | + name: Test on Windows |
| 70 | + |
| 71 | + strategy: |
| 72 | + matrix: |
| 73 | + os: |
| 74 | + - windows-2025 |
| 75 | + python-version: |
| 76 | + - '3.11' |
| 77 | + - '3.12' |
| 78 | + - '3.13' |
| 79 | + |
| 80 | + runs-on: ${{ matrix.os }} |
| 81 | + |
| 82 | + defaults: |
| 83 | + run: |
| 84 | + shell: msys2 {0} |
| 85 | + |
| 86 | + steps: |
| 87 | + - name: Setup MSYS2 environment |
| 88 | + uses: msys2/setup-msys2@v2 |
| 89 | + with: |
| 90 | + msystem: UCRT64 |
| 91 | + update: true |
| 92 | + install: git mingw-w64-ucrt-x86_64-gcc |
| 93 | + |
| 94 | + - name: Checkout code |
| 95 | + uses: actions/checkout@v6 |
| 96 | + with: |
| 97 | + submodules: recursive |
| 98 | + |
| 99 | + - name: Set up Python |
| 100 | + uses: actions/setup-python@v6 |
| 101 | + with: |
| 102 | + python-version: ${{ matrix.python-version }} |
| 103 | + |
| 104 | + - name: Install dependencies |
| 105 | + run: | |
| 106 | + python3 -m pip install --upgrade pip |
| 107 | + python3 -m pip install setuptools wheel build cython |
| 108 | + python3 -m pip install flake8 mypy pytest |
| 109 | +
|
| 110 | + - name: Build wheel and source tarball |
| 111 | + run: | |
| 112 | + python3 -m build |
| 113 | +
|
| 114 | + - name: Install built wheel |
| 115 | + run: | |
| 116 | + python3 -m pip install dist/softfloatpy-*.whl |
| 117 | +
|
| 118 | + - name: Check coding style with flake8 |
| 119 | + run: | |
| 120 | + python3 -m flake8 --doctests ./python |
| 121 | +
|
| 122 | + - name: Check data types with mypy |
| 123 | + run: | |
| 124 | + python3 -m mypy --strict ./python |
| 125 | +
|
| 126 | + - name: Test code with pytest |
| 127 | + run: | |
| 128 | + python3 -m pytest ./python --doctest-modules |
0 commit comments