numpydantic/.github/workflows/tests.yml

67 lines
1.6 KiB
YAML
Raw Normal View History

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
strategy:
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"
2024-07-31 22:59:46 +00:00
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
2024-07-31 23:11:42 +00:00
run: pip install -e ".[tests]"
- name: Install numpy version
run: pip install "numpy${{ matrix.numpy-version }}"
- name: Run Tests
run: pytest
- name: Coveralls Parallel
2024-07-31 23:04:10 +00:00
uses: coverallsapp/github-action@v2.3.0
2024-07-31 23:20:22 +00:00
if: runner.os != 'macOS'
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
2024-07-31 23:11:42 +00:00
debug: true
finish-coverage:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
2024-07-31 23:04:10 +00:00
uses: coverallsapp/github-action@v2.3.0
with:
parallel-finished: true