Python Package #32
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: Python Package | |
on: | |
push: | |
branches: [main, v*] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [main] | |
schedule: | |
- cron: "45 8 * * 4" | |
jobs: | |
build: | |
name: Package for ${{ matrix.os }} Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
# install dev dependencies | |
pip install -r requirements-dev.txt | |
- name: hatch run dev:check | |
run: | | |
python -m pytest | |
python -m ruff . | |
python -m black --check src |