@@ -8,16 +8,15 @@ name: Build and test linkml-runtime
88on :
99 push :
1010 branches :
11- - main
11+ - main
1212 pull_request :
1313 workflow_dispatch :
1414
1515jobs :
16-
1716 quality-checks :
1817 runs-on : ubuntu-latest
1918 steps :
20- - uses : actions/checkout@v4 .2.2
19+ - uses : actions/checkout@4 .2.2
2120 - name : Install Poetry
2221 run : |
2322 pipx install poetry
@@ -42,61 +41,49 @@ jobs:
4241 matrix :
4342 os : [ubuntu-latest, windows-latest]
4443 python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
44+ # Test on Windows with only the oldest and newest Python versions
4545 exclude :
46- - os : windows-latest
47- python-version : " 3.10"
48- - os : windows-latest
49- python-version : " 3.11"
50- - os : windows-latest
51- python-version : " 3.12"
46+ - os : windows-latest
47+ python-version : " 3.10"
48+ - os : windows-latest
49+ python-version : " 3.11"
50+ - os : windows-latest
51+ python-version : " 3.12"
52+ # See https://github.com/snok/install-poetry#running-on-windows
53+ defaults :
54+ run :
55+ shell : bash
5256
5357 runs-on : ${{ matrix.os }}
5458
5559 steps :
60+ - name : Check out repository
61+ uses : actions/checkout@4.2.2
62+ with :
63+ fetch-depth : 0
64+
5665
57- # ----------------------------------------------
58- # install poetry
59- # ----------------------------------------------
6066 - name : Install Poetry
6167 run : |
6268 pipx install poetry
6369 pipx inject poetry poetry-dynamic-versioning
6470
65- # ----------------------------------------------
66- # check-out repo and set-up python
67- # ----------------------------------------------
68- - name : Check out repository
69- uses : actions/checkout@v4.2.2
70- with :
71- fetch-depth : 0
72-
7371 - name : Set up Python ${{ matrix.python-version }}
7472 uses : actions/setup-python@v5.6.0
7573 with :
7674 python-version : ${{ matrix.python-version }}
7775 cache : ' poetry'
7876
79- # ----------------------------------------------
80- # install your root project, if required
81- # ----------------------------------------------
8277 - name : Install library
8378 run : |
8479 poetry install --no-interaction
85-
86- # ----------------------------------------------
87- # coverage report
88- # ----------------------------------------------
8980 - name : Generate coverage results
9081 # Set bash shell to fail correctly on Windows https://github.com/actions/runner-images/issues/6668
9182 shell : bash
9283 run : |
9384 poetry run coverage run -m pytest
9485 poetry run coverage xml
9586 poetry run coverage report -m
96-
97- # ----------------------------------------------
98- # upload coverage results
99- # ----------------------------------------------
10087 - name : Upload coverage report
10188 uses : codecov/codecov-action@v5
10289 with :
0 commit comments