Skip to content

Commit

Permalink
CI: restore regular test matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
WarrenWeckesser committed Aug 9, 2023
1 parent 1a3cb8c commit 6a31d69
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,49 @@ name: tests
on: [push, pull_request]

jobs:
# tests:
# strategy:
# max-parallel: 4
# matrix:
# python-version: ['3.8', '3.9', '3.10', '3.11']
# numpy-version: ['1.20.3', '1.21.6', '1.22.4', '1.23.5', '1.24.4', '1.25.2']
# os: [ubuntu-latest, macos-11, macos-12]
# exclude:
# - python-version: '3.8'
# numpy-version: '1.25.2'
# - python-version: '3.10'
# numpy-version: '1.20.3'
# - python-version: '3.11'
# numpy-version: '1.20.3'
# - python-version: '3.11'
# numpy-version: '1.21.6'
# - python-version: '3.11'
# numpy-version: '1.22.4'
tests:
strategy:
max-parallel: 4
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
numpy-version: ['1.20.3', '1.21.6', '1.22.4', '1.23.5', '1.24.4', '1.25.2']
os: [ubuntu-latest, macos-11, macos-12]
exclude:
- python-version: '3.8'
numpy-version: '1.25.2'
- python-version: '3.10'
numpy-version: '1.20.3'
- python-version: '3.11'
numpy-version: '1.20.3'
- python-version: '3.11'
numpy-version: '1.21.6'
- python-version: '3.11'
numpy-version: '1.22.4'

# runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os }}

# steps:
# - uses: actions/checkout@v3
# - name: Set up ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip wheel
# python -m pip install --upgrade setuptools==59.8.0
# python -m pip install pytest
# python -m pip install numpy==${{ matrix.numpy-version }}
# - name: Install ufunclab
# run: |
# python -m pip install .
# - name: Test with pytest
# run: |
# cd ../..
# pwd
# export LOCATION=`python -c "import ufunclab, os; print(os.path.dirname(ufunclab.__file__))"`
# echo $LOCATION
# python -m pytest $LOCATION
steps:
- uses: actions/checkout@v3
- name: Set up ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install --upgrade setuptools==59.8.0
python -m pip install pytest
python -m pip install numpy==${{ matrix.numpy-version }}
- name: Install ufunclab
run: |
python -m pip install .
- name: Test with pytest
run: |
cd ../..
pwd
export LOCATION=`python -c "import ufunclab, os; print(os.path.dirname(ufunclab.__file__))"`
echo $LOCATION
python -m pytest $LOCATION
test-main-numpy:
strategy:
Expand Down

0 comments on commit 6a31d69

Please sign in to comment.