Merge pull request #55 from neutrinoceros/cp312_wheels #131
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: Build and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: '${{ matrix.tests-type }} tests: py${{ matrix.python-version }} on ${{ matrix.os }}' | |
strategy: | |
# run all tests even if e.g. image tests fail early | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
python-version: | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
# Test all on ubuntu, test ends on macos and windows | |
include: | |
- os: macos-latest | |
python-version: '3.8' | |
- os: windows-latest | |
python-version: '3.8' | |
- os: macos-latest | |
python-version: '3.11' | |
- os: windows-latest | |
python-version: '3.11' | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Build | |
shell: bash | |
env: | |
dependencies: ${{ matrix.dependencies }} | |
run: | | |
python -m pip install --editable "." | |
python -m pip install -r test_requirements.txt | |
- name: Run Tests | |
env: | |
testsuite: ${{ matrix.tests-type }} | |
run: pytest --color=yes |