Skip to content

Commit 75a5082

Browse files
authored
Update GitHub Actions
1 parent 8d39f03 commit 75a5082

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

.github/workflows/check_sphinx_links.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,18 @@ on:
88
jobs:
99
check-external-links:
1010
runs-on: ubuntu-latest
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
1114
steps:
12-
- name: Cancel non-latest runs
13-
uses: styfle/[email protected]
14-
with:
15-
all_but_latest: true
16-
access_token: ${{ github.token }}
17-
18-
- uses: actions/checkout@v4
15+
- name: Checkout repo with submodules
16+
uses: actions/checkout@v4
1917
with:
2018
submodules: 'recursive'
2119
fetch-depth: 0 # tags are required for versioneer to determine the version
2220

2321
- name: Set up Python
24-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2523
with:
2624
python-version: '3.12'
2725

@@ -31,4 +29,4 @@ jobs:
3129
python -m pip install -r requirements-doc.txt
3230
3331
- name: Check Sphinx links and references
34-
run: sphinx-build -n -b linkcheck ./docs/format/source ./test_build
32+
run: sphinx-build -n -W -b linkcheck ./docs/format/source ./test_build

.github/workflows/validate_schema.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
validate:
7-
# run pipeline on either a push event or a PR event on a fork
8-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
97
runs-on: ubuntu-latest
108
steps:
11-
- uses: actions/checkout@v4
9+
- name: Checkout repo
10+
uses: actions/checkout@v4
11+
1212
- name: Set up Python 3.12
1313
uses: actions/setup-python@v4
1414
with:
1515
python-version: "3.12"
16+
1617
- name: Install dev branch of HDMF
17-
run: |
18-
pip install git+https://github.com/hdmf-dev/hdmf.git
18+
run: pip install git+https://github.com/hdmf-dev/hdmf.git
19+
1920
- name: Validate schema specification
20-
run: |
21-
validate_hdmf_spec core -m nwb.schema.json
21+
run: validate_hdmf_spec core -m nwb.schema.json

0 commit comments

Comments
 (0)