Skip to content

Commit

Permalink
Limiting CI matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
balancap committed Sep 12, 2024
1 parent e5160b5 commit 0008c2b
Showing 1 changed file with 48 additions and 47 deletions.
95 changes: 48 additions & 47 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
# python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9"]
include:
- os: macos-12
python-version: "3.11"
Expand All @@ -50,49 +51,49 @@ jobs:
- name: Run tests
run: |
pytest -n auto
build-nightly:
name: Python 3.12 with nightly numpy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
with:
submodules: true
- name: Set up Python 3.12
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel
python -m pip install -U --pre numpy \
-i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
python -c "import numpy; print(f'{numpy.__version__=}')"
- name: Build ml_dtypes
run: |
python -m pip install .[dev] --no-build-isolation
- name: Run tests
run: |
pytest -n auto
build-oldest-numpy:
name: Python 3.9 with oldest supported numpy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
with:
submodules: true
- name: Set up Python 3.9
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
- name: Build ml_dtypes
run: |
python -m pip install .[dev]
python -m pip install numpy==1.21.0 # keep in sync with oldest numpy version in pyproject.toml
- name: Run tests
run: |
pytest -n auto
# build-nightly:
# name: Python 3.12 with nightly numpy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
# with:
# submodules: true
# - name: Set up Python 3.12
# uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
# with:
# python-version: "3.12"
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install setuptools wheel
# python -m pip install -U --pre numpy \
# -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
# python -c "import numpy; print(f'{numpy.__version__=}')"
# - name: Build ml_dtypes
# run: |
# python -m pip install .[dev] --no-build-isolation
# - name: Run tests
# run: |
# pytest -n auto
# build-oldest-numpy:
# name: Python 3.9 with oldest supported numpy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
# with:
# submodules: true
# - name: Set up Python 3.9
# uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # ratchet:actions/setup-python@v5
# with:
# python-version: "3.9"
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install --upgrade setuptools wheel
# - name: Build ml_dtypes
# run: |
# python -m pip install .[dev]
# python -m pip install numpy==1.21.0 # keep in sync with oldest numpy version in pyproject.toml
# - name: Run tests
# run: |
# pytest -n auto

0 comments on commit 0008c2b

Please sign in to comment.