Migration to linkml-copier-template v0.1.2 #77
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
# Built from: | |
# https://docs.github.com/en/actions/guides/building-and-testing-python | |
--- | |
name: Build and test pid4cat_model | |
on: [pull_request] | |
permissions: {} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# python-version: ["3.9", "3.10", "3.11", "3.12"] # re-enable when linkml-runtime has https://github.com/linkml/linkml-runtime/pull/357 | |
python-version: ["3.11", "3.12"] | |
fail-fast: false | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
persist-credentials: false | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install just & Poetry incl. plugins | |
# We install poetry-dynamic-versioning into pipx because the automatic installallation | |
# by poetry 2.x triggers a Windows issue https://github.com/pypa/installer/issues/260 | |
# and also does not work on Ubuntu in gh-actions. | |
run: | | |
pipx install rust-just | |
pipx install poetry | |
pipx inject poetry poetry-dynamic-versioning | |
- name: Install dependencies | |
run: poetry install --no-interaction --no-root | |
- name: Install project | |
run: poetry install --no-interaction | |
- name: Run test suite | |
run: just test |