✨ zoo 0.1.0 #20
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- zoo/** | |
- tests/** | |
- pyproject.toml | |
- .github/workflows/tests.yaml | |
pull_request: | |
branches: ["**"] | |
paths: | |
- zoo/** | |
- tests/** | |
- pyproject.toml | |
- .github/workflows/tests.yaml | |
jobs: | |
test-suite: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- { name: Python 3.11, python: "3.11" } | |
- { name: Python 3.10, python: "3.10" } | |
- { name: Python 3.9, python: "3.9" } | |
- { name: Python 3.8, python: "3.8" } | |
env: | |
ZOO_DOCKER: true | |
steps: | |
- name: Set up Github Workspace | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python Environment ${{ matrix.python }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Hatch | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -q hatch pre-commit | |
hatch --version | |
- name: Run Database Migrations | |
run: | | |
hatch run app:migrate | |
- name: Test Suite | |
run: | | |
echo "::add-matcher::.github/workflows/matchers/python.json" | |
hatch run +py="${{ matrix.python }}" all:cov | |
echo "::remove-matcher owner=python::" |