Skip to content

Merge pull request #55 from neutrinoceros/cp312_wheels #131

Merge pull request #55 from neutrinoceros/cp312_wheels

Merge pull request #55 from neutrinoceros/cp312_wheels #131

Workflow file for this run

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