|
11 | 11 | - develop |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - test: |
15 | | - name: Test |
| 14 | + test-on-linux: |
| 15 | + name: Test on Linux |
16 | 16 |
|
17 | 17 | strategy: |
18 | 18 | matrix: |
19 | 19 | os: |
20 | 20 | - ubuntu-24.04 |
21 | 21 | - ubuntu-24.04-arm |
| 22 | + python-version: |
| 23 | + - '3.11' |
| 24 | + - '3.12' |
| 25 | + - '3.13' |
| 26 | + |
| 27 | + runs-on: ${{ matrix.os }} |
| 28 | + |
| 29 | + steps: |
| 30 | + - name: Checkout code |
| 31 | + uses: actions/checkout@v6 |
| 32 | + with: |
| 33 | + submodules: recursive |
| 34 | + |
| 35 | + - name: Set up Python |
| 36 | + uses: actions/setup-python@v6 |
| 37 | + with: |
| 38 | + python-version: ${{ matrix.python-version }} |
| 39 | + |
| 40 | + - name: Install dependencies |
| 41 | + run: | |
| 42 | + python -m pip install --upgrade pip |
| 43 | + python -m pip install setuptools wheel build cython |
| 44 | + python -m pip install auditwheel |
| 45 | + python -m pip install flake8 mypy pytest |
| 46 | +
|
| 47 | + - name: Build wheel and source tarball |
| 48 | + run: | |
| 49 | + python -m build |
| 50 | + auditwheel repair dist/softfloatpy-*.whl |
| 51 | +
|
| 52 | + - name: Install built wheel |
| 53 | + run: | |
| 54 | + python -m pip install wheelhouse/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-macos: |
| 69 | + name: Test on macOS |
| 70 | + |
| 71 | + strategy: |
| 72 | + matrix: |
| 73 | + os: |
22 | 74 | - macos-15 |
23 | 75 | - macos-15-intel |
24 | 76 | python-version: |
25 | 77 | - '3.11' |
| 78 | + - '3.12' |
| 79 | + - '3.13' |
| 80 | + |
| 81 | + runs-on: ${{ matrix.os }} |
| 82 | + |
| 83 | + steps: |
| 84 | + - name: Checkout code |
| 85 | + uses: actions/checkout@v6 |
| 86 | + with: |
| 87 | + submodules: recursive |
| 88 | + |
| 89 | + - name: Set up Python |
| 90 | + uses: actions/setup-python@v6 |
| 91 | + with: |
| 92 | + python-version: ${{ matrix.python-version }} |
| 93 | + |
| 94 | + - name: Install dependencies |
| 95 | + run: | |
| 96 | + python -m pip install --upgrade pip |
| 97 | + python -m pip install setuptools wheel build cython |
| 98 | + python -m pip install flake8 mypy pytest |
| 99 | +
|
| 100 | + - name: Build wheel and source tarball |
| 101 | + run: | |
| 102 | + python -m build |
| 103 | +
|
| 104 | + - name: Install built wheel |
| 105 | + run: | |
| 106 | + python -m pip install dist/softfloatpy-*.whl |
| 107 | +
|
| 108 | + - name: Check coding style with flake8 |
| 109 | + run: | |
| 110 | + python -m flake8 --doctests ./python |
| 111 | +
|
| 112 | + - name: Check data types with mypy |
| 113 | + run: | |
| 114 | + python -m mypy --strict ./python |
| 115 | +
|
| 116 | + - name: Test code with pytest |
| 117 | + run: | |
| 118 | + python -m pytest ./python --doctest-modules |
| 119 | +
|
| 120 | + test-on-windows: |
| 121 | + name: Test on Windows |
| 122 | + |
| 123 | + strategy: |
| 124 | + matrix: |
| 125 | + os: |
| 126 | + - windows-2025 |
| 127 | + python-version: |
| 128 | + - '3.11' |
| 129 | + - '3.12' |
| 130 | + - '3.13' |
26 | 131 |
|
27 | 132 | runs-on: ${{ matrix.os }} |
28 | 133 |
|
|
0 commit comments