Skip to content

tests: newshape deprecated in favor of shape #236

tests: newshape deprecated in favor of shape

tests: newshape deprecated in favor of shape #236

Workflow file for this run

name: Test
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
env:
PIP_ONLY_BINARY: ":all:"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
# version number must be string, otherwise 3.10 becomes 3.1
- os: windows-latest
python-version: "3.12"
- os: ubuntu-latest
python-version: "3.10"
- os: macos-latest
python-version: "3.9"
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip
- run: python -m pip install -e .[test]
- if: ${{ matrix.os != 'ubuntu-latest' }}
run: python -m pytest
# toml is needed only by coveralls
- if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
python -m pip install toml
JUPYTER_PLATFORM_DIRS=1 coverage run -m pytest
- if: ${{ matrix.os == 'ubuntu-latest' }}
uses: coverallsapp/github-action@v2