Release v4.0.0 #661
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: test | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - "3.9" | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| - "3.13t" | |
| - "3.14" | |
| - "3.14t" | |
| - "pypy3.9" | |
| - "pypy3.10" | |
| - "pypy3.11" | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: python -m pip install -U pip 'setuptools>=45' pytest pyright | |
| - name: Run tests | |
| run: | | |
| python setup.py build_ext --inplace | |
| python -m unittest discover -vv tests | |
| ./bench.sh | |
| test_s390x: | |
| name: Test on big-endian s390x | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| submodules: recursive | |
| - name: Run tests on s390x | |
| uses: uraimo/run-on-arch-action@f9b26e3a1a408d5fd530d20c17b9f3f4428ff8d9 # v3.1.0 | |
| with: | |
| arch: s390x | |
| distro: ubuntu22.04 | |
| githubToken: ${{ github.token }} | |
| install: | | |
| apt-get update -q -y | |
| apt-get install -q -y python3 python3-pip build-essential | |
| run: | | |
| python3 -c "import sys; assert sys.byteorder == 'big'; print('byteorder:', sys.byteorder)" | |
| python3 -m pip install --upgrade uv | |
| uvx --python cpython@3.12 --with setuptools python setup.py build_ext --inplace | |
| uvx --python cpython@3.12 --with pytest,pyright python -m unittest discover -vv tests |