Skip to content

Commit d3b5417

Browse files
Merge branch 'fix-test-upstream' into perf-bool
2 parents 3637573 + 42181a7 commit d3b5417

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

.github/workflows/test-upstream.yaml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,17 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ ubuntu-latest, windows-latest ]
13-
python-version: [ "3.8", "3.9", "3.10", "3.11" ]
14-
pydantic-version: [ "1", "2" ]
13+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
1514
exclude:
1615
- os: windows-latest
17-
python-version: "3.8"
16+
python-version: "3.9"
1817
- os: windows-latest
19-
pydantic-version: "1"
20-
- python-version: "3.8"
21-
pydantic-version: "1"
22-
- python-version: "3.9"
23-
pydantic-version: "1"
24-
- python-version: "3.10"
25-
pydantic-version: "1"
18+
python-version: "3.10"
19+
- os: windows-latest
20+
python-version: "3.11"
2621
runs-on: ${{ matrix.os }}
22+
env:
23+
POETRY_VIRTUALENVS_IN_PROJECT: true
2724

2825
steps:
2926

@@ -43,16 +40,23 @@ jobs:
4340
path: linkml-runtime
4441
fetch-depth: 0
4542

43+
- name: Ensure tags if not run from main repo
44+
if: github.repository != 'linkml/linkml-runtime'
45+
working-directory: linkml-runtime
46+
run: |
47+
git remote add upstream https://github.com/linkml/linkml-runtime
48+
git fetch upstream --tags
49+
4650
- name: set up python
4751
uses: actions/setup-python@v5
4852
with:
4953
python-version: ${{ matrix.python-version }}
5054

51-
- name: install poetry
52-
uses: snok/install-poetry@v1
53-
with:
54-
virtualenvs-create: true
55-
virtualenvs-in-project: true
55+
- name: Install poetry
56+
run: pipx install poetry
57+
58+
- name: Install dynamic versioning plugin
59+
run: poetry self add "poetry-dynamic-versioning[plugin]"
5660

5761
- name: Load cached venv
5862
id: cached-poetry-dependencies
@@ -72,11 +76,6 @@ jobs:
7276
working-directory: linkml
7377
run: poetry add ../linkml-runtime
7478

75-
# use correct pydantic version
76-
- name: install pydantic
77-
working-directory: linkml
78-
run: poetry add pydantic@^${{ matrix.pydantic-version }}
79-
8079
# note that we run the installation step always, even if we restore a venv,
8180
# the cache will restore the old version of linkml-runtime, but the lockfile
8281
# will only store the directory dependency (and thus will reinstall it)

0 commit comments

Comments
 (0)