Workflow for HDMF Dev compatibility #12
Workflow file for this run
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: Check HDMF Dev Compatibility | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
check_compatibility: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel non-latest runs | |
uses: styfle/[email protected] | |
with: | |
all_but_latest: true | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Clone HDMF and Run HDMF tests | |
run: | | |
git clone https://github.com/hdmf-dev/hdmf.git --recurse-submodules | |
cd hdmf | |
python -m pip install -r requirements-dev.txt -r requirements.txt | |
python -m pip install -e . | |
cd src/hdmf/common/hdmf-common-schema | |
git remote update | |
git fetch | |
git checkout -b ${{ github.ref }} # checkout branch | |
cd .. | |
cd .. | |
cd .. | |
cd .. | |
pytest tests/unit/common/ |