Merge pull request #40 from p2p-ld/bugfix-numpy-str #240
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: | |
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", "3.13"] | |
exclude: | |
- numpy-version: "<2.0.0" | |
python-version: "3.10" | |
- numpy-version: "<2.0.0" | |
python-version: "3.11" | |
# let's call python 3.12 the last version we're going to support with numpy <2 | |
# they don't provide wheels for <2 in 3.13 and beyond. | |
- numpy-version: "<2.0.0" | |
python-version: "3.13" | |
- platform: "macos-latest" | |
python-version: "3.10" | |
- platform: "macos-latest" | |
python-version: "3.11" | |
- platform: "macos-latest" | |
python-version: "3.12" | |
- platform: "windows-latest" | |
python-version: "3.10" | |
- platform: "windows-latest" | |
python-version: "3.11" | |
- platform: "windows-latest" | |
python-version: "3.12" | |
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 |