Skip to content

Commit

Permalink
TST: add a CI job to check building against numpy 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Apr 11, 2024
1 parent 6e92335 commit fd1ebb4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,28 @@ jobs:
python -m pip install --editable .[test]
(nm -u erfa/ufunc.*.so | grep eraA2af) || exit 1
(python -c 'import erfa' 2>&1 | grep -n 'too old') > /dev/null && (echo 'liberfa too old, skipping tests'; exit 0) || python -m pytest
build_against_numpy_1:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
# this is mainly meant to be useful on old or exotic archs
# so we use our oldest-supported Python
python-version: '3.9'
- name: Build
# using --no-build-isolation allows us to skip pass build-system metadata
# from pyproject.toml
# In particular this allows us to use an older version of numpy than we
# normally require.
run: |
python -m pip install --upgrade wheels setuptools setuptools_scm jinja2 'numpy<2.0'
python -m pip install . --no-build-isolation

0 comments on commit fd1ebb4

Please sign in to comment.