Skip to content

Add minimal tests/ci #6

Add minimal tests/ci

Add minimal tests/ci #6

Workflow file for this run

name: Test Python package
on:
push:
branches: [master, v2.0.0]
pull_request:
branches: [master, v2.0.0]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pipx install poetry
- name: Enable env
run: poetry shell
- name: Install requirements
run: poetry install --with dev --all-extras --no-root
working-directory: python-package
- name: Test (python-${{ matrix.python-version }}, ${{ matrix.os }})
run: poetry run pytest
working-directory: python-package