Skip to content

Commit

Permalink
install gmpy2 via pip for python-3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
videlec committed Nov 1, 2023
1 parent e010a30 commit a18d60c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -22,8 +25,19 @@ jobs:
- name: Install pplpy dependencies
shell: bash -l {0}
run: |
mamba install --quiet setuptools gmpy2 cysignals ppl "${{matrix.cython}}"
conda list
mamba install --quiet setuptools cysignals ppl gmp gmpxx mpfr mpc "${{matrix.cython}}"
- 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: |
Expand Down

0 comments on commit a18d60c

Please sign in to comment.