Past PyNWB Version #328
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
name: Past PyNWB Version | |
on: | |
schedule: | |
- cron: "0 0 * * *" # daily | |
workflow_call: | |
jobs: | |
build-and-test: | |
name: Testing against past PyNWB versions | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
pynwb-version: ["2.1.0", "2.0.0"] | |
steps: | |
- uses: s-weigand/setup-conda@v1 | |
with: | |
update-conda: true | |
python-version: 3.9 | |
conda-channels: conda-forge | |
- uses: actions/checkout@v3 | |
- run: git fetch --prune --unshallow --tags | |
- name: Install pytest | |
run: | | |
pip install pytest | |
pip install pytest-cov | |
- name: Install package | |
run: | | |
pip install -e . | |
pip install pynwb==${{ matrix.pynwb-version }} | |
pip install dandi | |
- name: Download testing data and set config path | |
run: | | |
dandi download "https://gui-staging.dandiarchive.org/#/dandiset/204919" | |
python -c "from nwbinspector.testing import update_testing_config; update_testing_config(key='LOCAL_PATH', value='./204919/testing_files/')" | |
- name: Run pytest with coverage | |
run: pytest -rsx |