Skip to content

[tests] numpydantic.testing - exposing helpers for 3rd-party interface development & combinatoric testing #212

[tests] numpydantic.testing - exposing helpers for 3rd-party interface development & combinatoric testing

[tests] numpydantic.testing - exposing helpers for 3rd-party interface development & combinatoric testing #212

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
strategy:
fail-fast: false
matrix:
platform: ["ubuntu-latest", "macos-latest", "windows-latest"]
numpy-version: ["<2.0.0", ">=2.0.0"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
exclude:
- numpy-version: "<2.0.0"
python-version: "3.10"
- numpy-version: "<2.0.0"
python-version: "3.11"
- platform: "macos-latest"
python-version: "3.10"
- platform: "macos-latest"
python-version: "3.11"
- platform: "windows-latest"
python-version: "3.10"
- platform: "windows-latest"
python-version: "3.11"
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e ".[tests]"
- name: Install numpy version
run: pip install "numpy${{ matrix.numpy-version }}"
- name: Run Tests
run: pytest
- name: Coveralls Parallel
uses: coverallsapp/[email protected]
if: runner.os != 'macOS'
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
debug: true
finish-coverage:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/[email protected]
with:
parallel-finished: true