-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for running populate_dandiset_yaml.py
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Tests populate_dandiset_yaml.py | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 6 * * *' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
# Fetch all commits so that versioneer will return something | ||
# compatible with semantic-version | ||
fetch-depth: 0 | ||
path: dandi | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.6' | ||
|
||
- name: Install dandi | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install . | ||
working-directory: dandi | ||
|
||
- name: Check out dandi-api-datasets | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: dandi/dandi-api-datasets | ||
path: dandi-api-datasets | ||
|
||
- name: Install datalad | ||
run: python -m pip install datalad | ||
|
||
- name: Check out dandisets | ||
run: datalad -r install | ||
working-directory: dandi-api-datasets | ||
|
||
- name: Run populate_dandiset_yaml.py | ||
run: tools/populate_dandiset_yaml.py [0-9]* | ||
working-directory: dandi-api-datasets |