Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into rf-events
Browse files Browse the repository at this point in the history
* origin/master: (278 commits)
  [FIX] Move ``_stim.<ext>`` specification within the Task Events module (bids-standard#1750)
  rm macros with missing metadata
  Update src/schema/objects/metadata.yaml
  Update src/schema/objects/metadata.yaml
  Update src/schema/objects/metadata.yaml
  [pre-commit.ci] pre-commit autoupdate
  Update src/common-principles.md
  Update src/common-principles.md
  Update src/common-principles.md
  Update src/common-principles.md
  fix: replace SHOULD with MUST in last changes (cc @effigies)
  Apply suggestions from code review
  Apply suggestions from code review
  Apply suggestions from code review
  fix: checking if chinese characters are accepted by pandoc
  Apply suggestions from code review
  Update src/common-principles.md
  Update src/schema/rules/checks/events.yaml
  fix: deduplicate prescriptions for columns in tsvgz
  Apply suggestions from code review
  ...

 Conflicts:
	mkdocs.yml - just redid changes found in prior diff but unifying for current indentation and use of ""
  • Loading branch information
yarikoptic committed Apr 13, 2024
2 parents 642484c + 943c20e commit 3e9d605
Show file tree
Hide file tree
Showing 179 changed files with 14,472 additions and 2,427 deletions.
3,220 changes: 3,220 additions & 0 deletions .all-contributorsrc

Large diffs are not rendered by default.

23 changes: 14 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1
jobs:
build_docs:
docker:
- image: cimg/python:3.8
- image: cimg/python:3.12-node
steps:
# checkout code to default ~/project
- checkout
Expand All @@ -21,14 +21,15 @@ jobs:
- persist_to_workspace:
# the mkdocs build outputs are in ~/project/site
root: ~/project
paths: site
paths:
- site
- store_artifacts:
path: ~/project/site/
destination: dev_docs

check_links:
docker:
- image: cimg/python:3.8
- image: cimg/python:3.12
steps:
# checkout code to default ~/project
- checkout
Expand Down Expand Up @@ -66,14 +67,16 @@ jobs:
build_docs_pdf:
docker:
- image: danteev/texlive:latest
- image: texlive/texlive:latest
steps:
# checkout code to default ~/project
- checkout
- run:
name: install dependencies
command: |
apt-get update && apt install -y python3-pip
apt-get update && apt install -y python3-pip python3-venv pandoc
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r ~/project/requirements.txt
python3 -m pip install ~/project/tools/schemacode/[render]
Expand All @@ -83,6 +86,7 @@ jobs:
- run:
name: generate pdf version docs
command: |
source .venv/bin/activate
cd ~/project/pdf_build_src
bash build_pdf.sh
mv ~/project/pdf_build_src/bids-spec.pdf ~/project/bids-spec.pdf
Expand Down Expand Up @@ -128,7 +132,8 @@ jobs:
- persist_to_workspace:
# raw generated changelog in ~/changelog_build/CHANGES.md
root: ~/.
paths: changelog_build
paths:
- changelog_build

# Lint and fix the auto generated changes.md file
lint_generated_changelog:
Expand Down Expand Up @@ -161,7 +166,8 @@ jobs:
- persist_to_workspace:
# linted and fixed changelog in ~/changelog_build/CHANGES.md
root: ~/.
paths: changelog_build
paths:
- changelog_build

# Push built changelog to repo
commit_generated_changelog:
Expand All @@ -175,7 +181,7 @@ jobs:
- attach_workspace:
# fixed+linted changelog in ~/changelog_build/CHANGES.md
at: ~/.
- deploy:
- run:
name: Changelog deployment
# $CHANGE_TOKEN is generated via the GitHub web UI, and then securely stored within CircleCI web UI
command: |
Expand All @@ -194,7 +200,6 @@ jobs:
fi
workflows:
version: 2
search_build:
jobs:
- build_docs
Expand Down
6 changes: 4 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ignore:
- "*/*/tests/*"
- "**/tests/*"
- "*/*/tests/*"
- "**/tests/*"
codecov:
token: 7e84a7fb-8f7e-45f5-8dcc-9f5219fa3855
7 changes: 6 additions & 1 deletion .codespell_dict
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
sub-directory->subdirectory
Sub-directory->Subdirectory
sub-directories->subdirectories
Sub-directories->Subdirectories
file name->filename
File name->Filename
file names->filenames
File names->Filenames
folder->directory
folders->directories
Folder->Directory
Folders->Directories
10 changes: 6 additions & 4 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[codespell]
skip = *.js,*.svg,*.eps,.git
ignore-words-list = fo,te,als
builtin = clear,rare
dictionary = .codespell_dict
skip = *.js,*.svg,*.eps,.git,node_modules,env,venv,.mypy_cache,package-lock.json,CITATION.cff,tools/new_contributors.tsv,./tools/schemacode/docs/build
ignore-words-list = fo,te,als,Acknowledgements,acknowledgements,weill,bu,winn,manuel
builtin = clear,rare,en-GB_to_en-US
# this overloads default dictionaries and I have not yet figured out
# how to have multiple https://github.com/codespell-project/codespell/issues/2727
# dictionary = .codespell_dict
exclude-file = src/CHANGES.md
5 changes: 4 additions & 1 deletion .github/workflows/redirect_circleci_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ on: [status]

jobs:
circleci_artifacts_redirector_job:
if: "${{ startsWith(github.event.context, 'ci/circleci: build_docs_pdf') }}"
runs-on: ubuntu-latest
if: "${{ startsWith(github.event.context, 'ci/circleci: build_docs_pdf') }}"
permissions:
statuses: write
name: Run CircleCI artifacts redirector
steps:
- name: GitHub Action step
uses: larsoner/circleci-artifacts-redirector-action@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
api-token: ${{ secrets.CIRCLECI_TOKEN }}
artifact-path: 0/bids-spec.pdf
circleci-jobs: build_docs_pdf
job-title: Check the rendered PDF version here!
81 changes: 0 additions & 81 deletions .github/workflows/schema_docs.yaml

This file was deleted.

39 changes: 20 additions & 19 deletions .github/workflows/schemacode_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: "Install build dependencies"
run: pip install --upgrade build twine
- name: "Install test dependencies on tag"
run: pip install --upgrade pytest pyyaml pandas tabulate markdown-it-py
run: pip install --upgrade pytest pyyaml pandas tabulate markdown-it-py pyparsing
if: ${{ startsWith(github.ref, 'refs/tags/schema-') }}
- name: "Build archive on tag"
run: pytest tools/schemacode/bidsschematools -k make_archive
Expand All @@ -44,7 +44,7 @@ jobs:
run: python -m build tools/schemacode
- name: "Check distribution metadata"
run: twine check tools/schemacode/dist/*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
path: tools/schemacode/dist/
Expand All @@ -56,26 +56,27 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- os: macos-latest
python-version: 3
- os: windows-latest
python-version: 3
name: ${{ matrix.os }} with Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: "Set up Python"
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: "Display Python version"
run: python -c "import sys; print(sys.version)"

- name: "Fetch packages"
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
Expand All @@ -90,7 +91,7 @@ jobs:
--cov-append --cov-report=xml --cov=bidsschematools --doctest-modules
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: unit_${{ matrix.os }}_${{ matrix.python-version }}
path: coverage.xml
Expand All @@ -104,10 +105,10 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
python-version: ["3.11"]
steps:
- name: "Fetch packages"
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
Expand All @@ -129,12 +130,12 @@ jobs:
runs-on: ubuntu-latest
name: Validate schema
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set Up Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.11"

- name: Install the schemacode package
run: |
Expand All @@ -145,7 +146,7 @@ jobs:
run: python -m pytest --pyargs bidsschematools -m "validate_schema" --cov-append --cov-report=xml --cov=bidsschematools

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: schema_validation
path: coverage.xml
Expand All @@ -157,13 +158,13 @@ jobs:
needs: [test, validate_schema]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Upload to CodeCov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required but might help API rate limits
fail_ci_if_error: true
Loading

0 comments on commit 3e9d605

Please sign in to comment.