Revert 911cb7c #377
Workflow file for this run
This file contains 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: | |
linter: | |
uses: ./.github/workflows/linter.yml | |
docs: | |
uses: ./.github/workflows/docs.yml | |
coverage: | |
uses: ./.github/workflows/coverage.yml | |
linux: | |
needs: | |
- linter | |
- coverage | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: [3.9, '3.10', pypy3.10-nightly, 3.11, 3.12, 3.13, 3.14] | |
runs-on: ubuntu-24.04 | |
env: | |
PYTEST_ADDOPTS: --verbose | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
# - run: | | |
# sudo apt-get update | |
# sudo apt-get install libgmp-dev | |
- run: | | |
export GMP_VERSION=6.3.0 | |
wget -q https://ftp.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.xz | |
tar -xf gmp-${GMP_VERSION}.tar.xz | |
cd gmp-${GMP_VERSION} | |
rm config.guess && mv configfsf.guess config.guess && chmod +x config.guess | |
./configure --enable-fat --enable-shared --disable-static --with-pic --enable-alloca=no -q | |
make -s | |
sudo make -s install | |
- run: pip install --upgrade pip | |
- run: CFLAGS="-Wpedantic -Werror -std=c17" pip --verbose install --editable .[tests] | |
- run: ulimit -s 32768 | |
- run: LD_LIBRARY_PATH=/usr/local/lib/ pytest | |
macos: | |
needs: | |
- linux | |
runs-on: macos-14 | |
env: | |
CFLAGS: -Wpedantic -Werror -std=c17 | |
PYTEST_ADDOPTS: --verbose | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- run: pip install --upgrade pip | |
- run: | | |
export CFLAGS="$CFLAGS -I$(brew --prefix gmp)/include" | |
export LDFLAGS="-L$(brew --prefix gmp)/lib" | |
pip --verbose install --editable .[tests] | |
- run: pytest | |
windows: | |
needs: | |
- linux | |
runs-on: windows-2022 | |
env: | |
PYTEST_ADDOPTS: --verbose | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: >- | |
git | |
gcc | |
gmp-devel | |
python-setuptools | |
python-pip | |
- run: | | |
python -m venv .test-venv | |
source .test-venv/bin/activate | |
pip install --upgrade pip | |
pip --verbose install -e .[tests] | |
pytest |