Add minimal tests/ci #1
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: 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: | |
python-version: ["3.8", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# You can test your matrix by printing the current Python version | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Install requirements | |
run: poetry install --with dev --all-extras --no-root | |
- name: Test (python-${{ matrix.python-version }}, ${{ matrix.os }})) | |
run: poetry run pytest |