Update runners for arm macos #208
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Tests on ${{ matrix.os }} - ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.7', '3.12', 'pypy-3.9'] | |
exclude: | |
- os: macos-latest | |
python-version: '3.7' | |
include: | |
- os: macos-latest | |
python-version: '3.8' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install base dependencies | |
run: pip install tabulate pytest pytest-subtests html5lib | |
- name: Test minimums | |
run: pytest | |
- name: Install NumPy and SciPy | |
run: | | |
pip install --only-binary ":all:" numpy | |
pip install --only-binary ":all:" scipy || true | |
- name: Test only SciPy | |
run: pytest | |
- name: Install other supported packages | |
run: | | |
echo "=== Install Python-graphblas ==================" | |
pip install --only-binary ":all:" python-graphblas || true | |
echo "" | |
echo "=== Install PyData/Sparse =====================" | |
pip install --only-binary ":all:" sparse || true | |
echo "" | |
echo "=== Install PyTorch ===========================" | |
pip install --only-binary ":all:" "torch>=2.0.0" || true | |
echo "" | |
echo "=== Install TensorFlow =========================" | |
pip install --only-binary ":all:" tensorflow || true | |
- name: Python Test without Jupyter | |
run: pytest | |
- name: Install Jupyter | |
if: ${{ !contains(matrix.python-version, 'pypy') }} | |
run: pip install jupyter | |
- name: Python Test with Jupyter | |
if: ${{ !contains(matrix.python-version, 'pypy') }} | |
run: pytest | |
- name: Python Test with Coverage | |
if: ${{ contains(matrix.os, 'ubuntu') }} | |
run: | | |
pip install pytest-cov | |
pytest --cov=matrepr --cov-report term --cov-report=xml | |
- name: Upload Coverage to Codecov | |
if: ${{ contains(matrix.os, 'ubuntu') }} | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
verbose: true | |
token: ${{ secrets.CODECOV_TOKEN }} |