|
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 | +
|
| 48 | + - name: Build wheel and source tarball |
| 49 | + run: | |
| 50 | + python -m build |
| 51 | +
|
| 52 | + - name: Install built wheel |
| 53 | + run: | |
| 54 | + python -m pip install dist/softfloatpy-*.whl |
| 55 | +
|
| 56 | + - name: Check coding style with flake8 |
| 57 | + run: | |
| 58 | + python -m flake8 --doctests ./python |
| 59 | +
|
| 60 | + - name: Check data types with mypy |
| 61 | + run: | |
| 62 | + python -m mypy --strict ./python |
| 63 | +
|
| 64 | + - name: Test code with pytest |
| 65 | + run: | |
| 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 | + |
| 76 | + runs-on: ${{ matrix.os }} |
| 77 | + |
| 78 | + defaults: |
| 79 | + run: |
| 80 | + shell: msys2 {0} |
| 81 | + |
| 82 | + steps: |
| 83 | + - name: Setup MSYS2 environment |
| 84 | + uses: msys2/setup-msys2@v2 |
| 85 | + with: |
| 86 | + msystem: UCRT64 |
| 87 | + update: true |
| 88 | + install: git mingw-w64-ucrt-x86_64-gcc |
| 89 | + |
| 90 | + - name: Checkout code |
| 91 | + uses: actions/checkout@v6 |
| 92 | + with: |
| 93 | + submodules: recursive |
| 94 | + |
| 95 | + - name: Set up Python |
| 96 | + run: | |
| 97 | + pacman -Syu --noconfirm |
| 98 | + pacman -S --noconfirm mingw-w64-ucrt-x86_64-python mingw-w64-ucrt-x86_64-python-pip |
| 99 | +
|
| 100 | + - name: Install dependencies |
| 101 | + run: | |
| 102 | + python -m pip install --upgrade pip |
| 103 | + python -m pip install setuptools wheel build cython |
| 104 | + python -m pip install flake8 mypy pytest |
47 | 105 |
|
48 | 106 | - name: Build wheel and source tarball |
49 | 107 | run: | |
|
0 commit comments