From dd003e1199bb419fe9816c818ba321f43d5e0255 Mon Sep 17 00:00:00 2001 From: Vincent Delecroix Date: Wed, 1 Nov 2023 21:45:06 +0100 Subject: [PATCH] install gmpy2 via pip for python-3.12 --- .github/workflows/test.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fdedf82..9e7937e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,9 @@ jobs: matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] cython: ["cython", "cython<3.0.0"] + exclude: + - python-version: 3.12 + cython: cython<3.0.0 steps: - uses: actions/checkout@v2 with: { submodules: recursive } @@ -22,8 +25,20 @@ jobs: - name: Install pplpy dependencies shell: bash -l {0} run: | - mamba install --quiet setuptools gmpy2 cysignals ppl "${{matrix.cython}}" + mamba install --quiet setuptools cysignals ppl "${{matrix.cython}}" conda list + - name: Install gmpy2 via mamba + shell: bash -l {0} + if: ${{ matrix.python-version != '3.12' }} + run: | + mamba install --quiet gmpy2 + python -c 'import gmpy2; print(gmpy2.version())' + - name: Install gmpy2 via pip + shell: bash -l {0} + if: ${{ matrix.python-version == '3.12' }} + run: | + pip install --pre gmpy2==2.2.0a1 + python -c 'import gmpy2; print(gmpy2.version())' - name: Install pplpy shell: bash -l {0} run: |