Skip to content

Commit 9921ff3

Browse files
author
Anton Benkevich
committed
Add windows test
1 parent 9773e42 commit 9921ff3

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/test_all.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@ on:
1313
pull_request:
1414

1515
jobs:
16+
windows_test:
17+
runs-on: windows-latest
18+
strategy:
19+
matrix:
20+
python-version: [ 3.7, 3.8, 3.9 ]
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install requirements
27+
run: |
28+
python -m pip install ./
29+
- name: Test
30+
run: |
31+
python3 -m unittest
32+
python3 scripts/validate_my_definition.py -d alsdkdefs/apis/assets_query/
1633
test:
1734
runs-on: ubuntu-latest
1835
strategy:

alsdkdefs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def get_apis_dir():
183183
return f"{pjoin(os.path.dirname(__file__), 'apis')}"
184184

185185

186-
def load_service_spec(service_name, apis_dir=None, version=None, use_persistent_cache=True):
186+
def load_service_spec(service_name, apis_dir=None, version=None, use_persistent_cache=False):
187187
"""Loads a version of service from library apis directory, if version is not specified, latest is loaded"""
188188
services = list_services(apis_dir)
189189
servicedef = services.get(service_name)

0 commit comments

Comments
 (0)