Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Fix test-as-submodule CI. #784

Merged
merged 3 commits into from
Feb 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ nrnivmodl mod
- Version: [e.g. master branch]
- Backend: [e.g. CPU]

**Use certain branches for the SimulationStack CI**

CI_BRANCHES:NEURON_BRANCH=master,
**Use certain branches in CI pipelines.**
<!-- You can steer which versions of CoreNEURON dependencies will be used in
the various CI pipelines (GitLab, test-as-submodule) here. Expressions are
of the form PROJ_REF=VALUE, where PROJ is the relevant Spack package name,
transformed to upper case and with hyphens replaced with underscores.
REF may be BRANCH, COMMIT or TAG, with exceptions:
- SPACK_COMMIT and SPACK_TAG are invalid (hpc/gitlab-pipelines limitation)
- NEURON_COMMIT and NEURON_TAG are invalid (test-as-submodule limitation)
These values for NEURON, nmodl and Spack are the defaults and are given
for illustrative purposes; they can safely be removed.
-->
CI_BRANCHES:NEURON_BRANCH=master,NMODL_BRANCH=master,SPACK_BRANCH=develop
6 changes: 3 additions & 3 deletions .github/workflows/test-as-submodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
env:
GITHUB_PR_BODY: ${{ github.event.pull_request.body }}
run: |
nrn_branch=`echo "${GITHUB_PR_BODY}" | grep "^CI_BRANCHES" \
| awk -v FS="NEURON_BRANCH=" '{print $2}'` \
| awk -v FS="," '{print $1}'
nrn_branch=$(echo "${GITHUB_PR_BODY}" | grep "^CI_BRANCHES" \
| awk -F '[:,]{1}NEURON_BRANCH=' '{print $2}' \
| awk -F ',' '{print $1}')
if [ -z "$nrn_branch" ]; then
nrn_branch=master
fi
Expand Down