kor
1name: test2on:3push:4branches: [main]5pull_request:6workflow_dispatch: # Allows to trigger the workflow manually in GitHub UI7
8# If another push to the same PR or branch happens while this workflow is still running,
9# cancel the earlier run in favor of the next run.
10#
11# There's no point in testing an outdated version of the code. GitHub only allows
12# a limited number of job runners to be active at the same time, so it's better to cancel
13# pointless jobs early so that more useful jobs can run sooner.
14concurrency:15group: ${{ github.workflow }}-${{ github.ref }}16cancel-in-progress: true17
18
19env:20POETRY_VERSION: "1.3.1"21
22jobs:23build:24runs-on: ubuntu-latest25strategy:26matrix:27python-version:28- "3.8"29- "3.9"30- "3.10"31- "3.11"32steps:33- uses: actions/checkout@v334- name: Install poetry35run: pipx install poetry==$POETRY_VERSION36- name: Set up Python ${{ matrix.python-version }}37uses: actions/setup-python@v438with:39python-version: ${{ matrix.python-version }}40cache: "poetry"41- name: Install dependencies42run: poetry install --with test -E html43- name: Run unit tests44run: |45poetry run poe test
46
47pydantic-compatibility:48uses:49./.github/workflows/_pydantic_compatibility.yml
50with:51working-directory: .52secrets: inherit53