Skip to content

Commit 234f624

Browse files
committed
Merge remote-tracking branch 'upstream/master' into pr/684
2 parents 9a887bf + 2c0469b commit 234f624

File tree

5,918 files changed

+211383
-26689
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,918 files changed

+211383
-26689
lines changed

.coveragerc

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"/RADME", # wrong filename
2+
"/CANGES", # wrong filename
3+
"/dataset_descrption.json", # wrong filename
4+
"/dataset_description.jon", # wrong extension
5+
"/participants.sv", # wrong extension
6+
"/participnts.tsv", # wrong filename
7+
"/particpants.json" # wrong filename
8+
"/participants.son" # wrong extension

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
- package-ecosystem: "gitsubmodule"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
# This file tests the claimed support range of PyBIDS including
2+
#
3+
# * Operating systems: Linux, OSX
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
- maint/*
10+
- test-pypi-uploads
11+
tags:
12+
- '*'
13+
pull_request: {}
14+
schedule:
15+
# 8am EST / 9am EDT Mondays
16+
- cron: '0 13 * * 1'
17+
# Allow job to be triggered manually from GitHub interface
18+
workflow_dispatch:
19+
20+
defaults:
21+
run:
22+
shell: bash
23+
24+
# Force tox and pytest to use color
25+
env:
26+
FORCE_COLOR: true
27+
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.ref }}
30+
cancel-in-progress: true
31+
32+
permissions:
33+
contents: read
34+
35+
jobs:
36+
build:
37+
name: Build & verify package
38+
runs-on: ubuntu-latest
39+
permissions:
40+
attestations: write
41+
id-token: write
42+
steps:
43+
- uses: actions/checkout@v4
44+
with:
45+
fetch-depth: 0
46+
- uses: hynek/build-and-inspect-python-package@v2
47+
with:
48+
attest-build-provenance-github: ${{ github.event_name != 'pull_request' }}
49+
50+
test:
51+
# Check each OS, all supported Python, minimum versions and latest releases
52+
runs-on: ${{ matrix.os }}
53+
needs: [build]
54+
strategy:
55+
matrix:
56+
os: ['ubuntu-latest', 'macos-latest']
57+
python-version: ['3.9', '3.10', '3.11', '3.12']
58+
dependencies: ['full', 'pre']
59+
source: ['repo']
60+
include:
61+
- os: ubuntu-latest
62+
python-version: '3.9'
63+
dependencies: min
64+
source: 'repo'
65+
- os: ubuntu-latest
66+
python-version: '3'
67+
dependencies: full
68+
source: 'sdist'
69+
exclude:
70+
# Drop pre tests for SPEC-0-unsupported Python versions
71+
# See https://scientific-python.org/specs/spec-0000/
72+
- python-version: '3.9'
73+
dependencies: pre
74+
- python-version: '3.10'
75+
dependencies: pre
76+
fail-fast: false
77+
78+
env:
79+
DEPENDS: ${{ matrix.dependencies }}
80+
81+
steps:
82+
- uses: actions/checkout@v4
83+
if: matrix.source == 'repo'
84+
with:
85+
submodules: recursive
86+
fetch-depth: 0
87+
- name: Download packages built by build-and-inspect-python-package
88+
if: matrix.source == 'sdist'
89+
uses: actions/download-artifact@v4
90+
with:
91+
name: Packages
92+
path: dist
93+
- name: Extract sdist
94+
if: matrix.source == 'sdist'
95+
run: tar --strip-components=1 -xzf dist/*.tar.gz
96+
- name: Set up Python ${{ matrix.python-version }}
97+
uses: actions/setup-python@v5
98+
with:
99+
python-version: ${{ matrix.python-version }}
100+
allow-prereleases: true
101+
- name: Display Python version
102+
run: python -c "import sys; print(sys.version)"
103+
- name: Install tox
104+
run: |
105+
python -m pip install --upgrade pip
106+
python -m pip install tox tox-gh-actions
107+
- name: Show tox config
108+
run: tox c
109+
- name: Run tox
110+
run: tox -v --exit-and-dump-after 1200
111+
- uses: codecov/codecov-action@v5
112+
if: ${{ always() }}
113+
with:
114+
files: cov.xml
115+
token: ${{ secrets.CODECOV_TOKEN }}
116+
117+
test-publish:
118+
name: Push package to test.pypi.org
119+
if: github.event_name == 'push'
120+
runs-on: ubuntu-latest
121+
needs: [build]
122+
permissions:
123+
attestations: write
124+
id-token: write
125+
126+
steps:
127+
- name: Download packages built by build-and-inspect-python-package
128+
uses: actions/download-artifact@v4
129+
with:
130+
name: Packages
131+
path: dist
132+
133+
- name: Upload package to PyPI
134+
uses: pypa/gh-action-pypi-publish@release/v1
135+
with:
136+
repository-url: https://test.pypi.org/legacy/
137+
skip-existing: true
138+
139+
publish:
140+
name: Publish released package to pypi.org
141+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
142+
runs-on: ubuntu-latest
143+
needs: [test, test-publish]
144+
permissions:
145+
attestations: write
146+
id-token: write
147+
148+
steps:
149+
- name: Download packages built by build-and-inspect-python-package
150+
uses: actions/download-artifact@v4
151+
with:
152+
name: Packages
153+
path: dist
154+
155+
- name: Upload package to PyPI
156+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- uses: codespell-project/actions-codespell@master

.github/workflows/docs.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,51 @@ on:
99
- docs/*
1010
tags:
1111
- '*'
12+
pull_request:
13+
workflow_dispatch:
1214

1315
defaults:
1416
run:
1517
shell: bash
1618

19+
# Force tox to use color
20+
env:
21+
FORCE_COLOR: true
22+
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.ref }}
25+
cancel-in-progress: true
26+
27+
permissions:
28+
contents: read
29+
1730
jobs:
1831
docs:
1932
runs-on: ubuntu-latest
2033
strategy:
2134
matrix:
2235
include:
23-
- python-version: 3.9
36+
- python-version: '3.11'
2437
steps:
25-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v4
2639
with:
2740
submodules: recursive
2841
fetch-depth: 0
2942
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v2
43+
uses: actions/setup-python@v5
3144
with:
3245
python-version: ${{ matrix.python-version }}
3346
- name: Display Python version
3447
run: python -c "import sys; print(sys.version)"
35-
- name: Create virtual environment
36-
run: tools/ci/create_venv.sh
37-
- name: Install pybids
38-
run: tools/ci/install_extras.sh
39-
env:
40-
EXTRA_PIP_FLAGS: ""
41-
CHECK_TYPE: doc
4248
- name: Build documentation
43-
run: |
44-
source tools/ci/activate.sh
45-
make -C doc html
49+
run: pipx run tox -e docs
4650
- name: Upload docs as artifacts
47-
uses: actions/upload-artifact@v2
51+
uses: actions/upload-artifact@v4
4852
with:
4953
path: doc/_build/html
5054
- name: Deploy (on tags)
5155
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
52-
uses: peaceiris/actions-gh-pages@v3
56+
uses: peaceiris/actions-gh-pages@v4
5357
with:
5458
github_token: ${{ secrets.GITHUB_TOKEN }}
5559
publish_dir: doc/_build/html

.github/workflows/package.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/pre-release.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)