Skip to content

Commit

Permalink
Merge pull request #58 from CalebBell/trypypyupgrade
Browse files Browse the repository at this point in the history
See if can upgarde pypy on CI
  • Loading branch information
CalebBell authored Jun 4, 2023
2 parents 5187fe6 + f3f3c7e commit cd4ed10
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.6'] # 'pypy-3.7'
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy3.9'] # 'pypy-3.7'
os: [windows-latest, ubuntu-latest, macos-latest]
architecture: ['x86', 'x64']
exclude:
# Failures due to lack of numpy wheels
# numpy.distutils.system_info.NotFoundError: No lapack/blas resources found.
# even 32 bit pypy2 or pypy3 doesn't work
- os: windows-latest
python-version: pypy-3.6
python-version: pypy3.9
- os: windows-latest
python-version: pypy-3.7
# pypy2 Failure building pandas wheels
# pypy3 error: library mach has Fortran sources but no Fortran compiler found
- os: macos-latest
python-version: pypy-3.6
python-version: pypy3.9
- os: macos-latest
python-version: pypy-3.7
# no python builds available on macos 32 bit
Expand All @@ -52,9 +52,9 @@ jobs:
- os: ubuntu-latest
python-version: 3.6
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.architecture }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
Expand Down Expand Up @@ -84,6 +84,13 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ runner.architecture }}-${{ runner.python-version }}pip-
- name: Install Ubuntu dependencies
if: startsWith(runner.os, 'Linux')
run: |
# Taken from scipy
sudo apt-get update
sudo apt-get install -y libopenblas-dev libatlas-base-dev liblapack-dev gfortran libgmp-dev libmpfr-dev libsuitesparse-dev ccache libmpc-dev
- name: Install dependencies
run: |
python -c "import platform; print(platform.platform()); print(platform.architecture())"
Expand Down
2 changes: 2 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def pytest_ignore_collect(path):
return True
if 'conf.py' in path:
return True
if 'is_pypy' and 'test_spa' in path:
return True
if ver_tup < (3, 7) or ver_tup >= (3, 12) or is_pypy:
# numba does not yet run under pypy
if 'numba' in path:
Expand Down

0 comments on commit cd4ed10

Please sign in to comment.