-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (37 loc) · 1.42 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Built from:
# https://docs.github.com/en/actions/guides/building-and-testing-python
---
name: Build and test
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