Skip to content

Commit

Permalink
Remove numpy-dispatch CI job & simplify build specification
Browse files Browse the repository at this point in the history
The numpy-dispatch approach has been superseded by the Python Array API (Tracked for JAX in #18353).

While we're here, we'll reduce the github CI to only two jobs: the oldest and newest supported Python versions. Other versions can be covered by Kokoro.

PiperOrigin-RevId: 587041291
  • Loading branch information
Jake VanderPlas authored and jax authors committed Dec 1, 2023
1 parent b3c579e commit ada5fe5
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,20 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
# Test the oldest and newest supported Python versions here.
include:
- name-prefix: "with numpy-dispatch"
- name-prefix: "with 3.9"
python-version: "3.9"
os: ubuntu-20.04-16core
enable-x64: 1
prng-upgrade: 1
# Test experimental NumPy dispatch
package-overrides: "git+https://github.com/seberg/numpy-dispatch.git"
num_generated_cases: 1
use-latest-jaxlib: false
- name-prefix: "with 3.10"
python-version: "3.10"
- name-prefix: "with 3.12"
python-version: "3.12"
os: ubuntu-20.04-16core
enable-x64: 0
prng-upgrade: 0
package-overrides: "none"
num_generated_cases: 1
use-latest-jaxlib: false
- name-prefix: "with 3.11"
python-version: "3.11"
os: ubuntu-20.04-16core
enable-x64: 0
prng-upgrade: 0
package-overrides: "none"
num_generated_cases: 1
use-latest-jaxlib: false
steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@0.12.0
Expand All @@ -92,15 +80,7 @@ jobs:
key: ${{ runner.os }}-py${{ matrix.python-version }}-pip-${{ hashFiles('**/setup.py', '**/requirements.txt', '**/test-requirements.txt') }}
- name: Install dependencies
run: |
pip install -r build/test-requirements.txt
if [ "${{ matrix.package-overrides }}" != "none" ]; then
pip install ${{ matrix.package-overrides }}
fi
if [ "${{ matrix.use-latest-jaxlib }}" == "true" ]; then
pip install .[cpu]
else
pip install .[minimum-jaxlib]
fi
pip install .[minimum-jaxlib] -r build/test-requirements.txt
- name: Run tests
env:
Expand Down

0 comments on commit ada5fe5

Please sign in to comment.