Get testdata using checkout action

This commit is contained in:
Ogi Moore 2021-01-19 20:10:00 -08:00
parent c62838079b
commit ee623c0fa9
2 changed files with 11 additions and 2 deletions

View File

@ -23,7 +23,13 @@ jobs:
qt-version: ""
numpy-version: ""
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
- name: Checkout test-data
uses: actions/checkout@v2
with:
repository: pyqtgraph/test-data
path: .pyqtgraph/test-data
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:

View File

@ -469,7 +469,10 @@ def getTestDataRepo():
"""
global testDataTag
dataPath = os.path.join(os.path.expanduser('~'), '.pyqtgraph', 'test-data')
if os.environ["CI"]:
dataPath = os.path.join(os.environ["GITHUB_WORKSPACE"], '.pyqtgraph', 'test-data')
else:
dataPath = os.path.join(os.path.expanduser('~'), '.pyqtgraph', 'test-data')
gitPath = 'https://github.com/pyqtgraph/test-data'
gitbase = gitCmdBase(dataPath)