Skip to content

Fix: GitHub workflow script injection #34

Fix: GitHub workflow script injection

Fix: GitHub workflow script injection #34

name: Check HDMF Dev Compatibility
on: [pull_request, workflow_dispatch]
env:
HEAD_REF: ${{ github.head_ref }}
jobs:
check_compatibility:
runs-on: ubuntu-latest
steps:
- name: Cancel non-latest runs
uses: styfle/cancel-workflow-action@0.11.0
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 checkout $HEAD_REF # checkout branch
cd ../../../..
pytest tests/unit/common/