Update the version number #54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests of codes | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| jobs: | |
| test-on-linux: | |
| name: Test on Linux | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-24.04 | |
| - ubuntu-24.04-arm | |
| python-version: | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install setuptools wheel build cython | |
| python -m pip install auditwheel | |
| python -m pip install flake8 mypy pytest | |
| - name: Build wheel and source tarball | |
| run: | | |
| python -m build | |
| auditwheel repair dist/softfloatpy-*.whl | |
| - name: Install built wheel | |
| run: | | |
| python -m pip install --no-index --find-links=./wheelhouse softfloatpy | |
| - name: Check coding style with flake8 | |
| run: | | |
| python -m flake8 --doctests ./python | |
| - name: Check data types with mypy | |
| run: | | |
| python -m mypy --strict ./python | |
| - name: Test code with pytest | |
| run: | | |
| python -m pytest ./python/tests --doctest-modules | |
| test-on-macos: | |
| name: Test on macOS | |
| strategy: | |
| matrix: | |
| os: | |
| - macos-15 | |
| - macos-15-intel | |
| python-version: | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install setuptools wheel build cython | |
| python -m pip install flake8 mypy pytest | |
| - name: Build wheel and source tarball | |
| run: | | |
| python -m build | |
| - name: Install built wheel | |
| run: | | |
| python -m pip install --no-index --find-links=./dist softfloatpy | |
| - name: Check coding style with flake8 | |
| run: | | |
| python -m flake8 --doctests ./python | |
| - name: Check data types with mypy | |
| run: | | |
| python -m mypy --strict ./python | |
| - name: Test code with pytest | |
| run: | | |
| python -m pytest ./python/tests --doctest-modules | |
| test-on-windows: | |
| name: Test on Windows | |
| strategy: | |
| matrix: | |
| os: | |
| - windows-2025 | |
| python-version: | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install setuptools wheel build cython | |
| python -m pip install flake8 mypy pytest | |
| - name: Build wheel and source tarball | |
| run: | | |
| python -m build | |
| - name: Install built wheel | |
| run: | | |
| python -m pip install --no-index --find-links=./dist softfloatpy | |
| - name: Check coding style with flake8 | |
| run: | | |
| python -m flake8 --doctests ./python | |
| - name: Check data types with mypy | |
| run: | | |
| python -m mypy --strict ./python | |
| - name: Test code with pytest | |
| run: | | |
| python -m pytest ./python/tests --doctest-modules |