[pre-commit.ci] pre-commit autoupdate #238
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: 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 |