Skip to content

Commit 68656b5

Browse files
committed
Minimal changes to support windows
1 parent a3832a5 commit 68656b5

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/main.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@
55
name: Build and test linkml-model
66

77
on:
8-
pull_request:
8+
push:
99
branches: [ main ]
10-
types: [ opened, synchronize, reopened ]
10+
pull_request:
11+
workflow_dispatch:
1112

1213
jobs:
1314
test:
14-
15-
runs-on: ubuntu-latest
1615
strategy:
16+
fail-fast: false
1717
matrix:
18+
os: [ubuntu-latest, windows-latest]
1819
python-version: ["3.9", "3.10"]
1920

21+
runs-on: ${{ matrix.os }}
22+
2023
steps:
2124

2225
#----------------------------------------------

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ mkdocs-mermaid2-plugin = "^0.6.0"
4646
# Using an unpublished version here because we need a feature which isn't released yet (Aug 2023)
4747
# See: https://github.com/jimporter/mike/issues/154
4848
mike = {git = "https://github.com/jimporter/mike.git", rev = "be1aafe"}
49+
# The changes were released in 2.0.0!
50+
#mike = "^2.0.0"
4951

5052
[build-system]
5153
requires = ["poetry-core>=1.0.0"]

tests/test_linkml_files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from linkml_model.linkml_files import URL_FOR, Format, Source, LOCAL_PATH_FOR, GITHUB_IO_PATH_FOR, GITHUB_PATH_FOR, \
77
ReleaseTag
88
from tests import abspath
9+
from pathlib import Path
910

1011
root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "linkml_model"))
1112

@@ -55,7 +56,7 @@ def test_shorthand_paths(self):
5556
self.assertEqual('meta', str(fileloc.meta))
5657
self.assertEqual('meta.yaml', str(fileloc.meta.yaml))
5758
self.assertEqual('meta.py', str(fileloc.meta.python))
58-
self.assertEqual(abspath('linkml_model/model/schema/meta.yaml'), str(fileloc.meta.yaml.file))
59+
self.assertEqual(Path(abspath('linkml_model/model/schema/meta.yaml')), Path(fileloc.meta.yaml.file))
5960
self.assertEqual('https://linkml.github.io/linkml-model/model/schema/meta.yaml', str(fileloc.meta.yaml.github_loc()))
6061
self.assertEqual('https://raw.githubusercontent.com/linkml/linkml-model/f30637f5a585f3fc4b12fd3dbb3e7e95108d4b42/model/schema/meta.yaml', str(fileloc.meta.yaml.github_loc('v0.0.1')))
6162

0 commit comments

Comments
 (0)