Skip to content

Commit

Permalink
Add workflow for running populate_dandiset_yaml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Feb 4, 2021
1 parent 53da9e9 commit 78739f6
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test-populate-dandiset-yaml.yml
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

0 comments on commit 78739f6

Please sign in to comment.