-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
83 changed files
with
26,943 additions
and
31,979 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Codespell | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
codespell: | ||
name: Check for spelling errors | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: codespell-project/actions-codespell@master | ||
with: | ||
ignore_words_list: ro,anser,te,tage,afterall,nwe,nin,nd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Build & publish containers | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
push_docker_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
images: bids/validator | ||
|
||
- name: Build and push Docker image | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
push_singularity_to_registry: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- push_docker_to_registry | ||
steps: | ||
- name: Set up Go 1.13 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13 | ||
id: go | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get install -y \ | ||
build-essential \ | ||
libssl-dev \ | ||
uuid-dev \ | ||
libgpgme11-dev \ | ||
squashfs-tools \ | ||
libseccomp-dev \ | ||
pkg-config | ||
- name: Install Singularity | ||
env: | ||
SINGULARITY_VERSION: 3.8.0 | ||
GOPATH: /tmp/go | ||
run: | | ||
mkdir -p $GOPATH | ||
sudo mkdir -p /usr/local/var/singularity/mnt && \ | ||
mkdir -p $GOPATH/src/github.com/sylabs && \ | ||
cd $GOPATH/src/github.com/sylabs && \ | ||
wget -qO- https://github.com/sylabs/singularity/releases/download/v${SINGULARITY_VERSION}/singularity-ce-${SINGULARITY_VERSION}.tar.gz | \ | ||
tar xzv && \ | ||
cd singularity-ce-${SINGULARITY_VERSION} && \ | ||
./mconfig -p /usr/local && \ | ||
make -C builddir && \ | ||
sudo make -C builddir install | ||
- name: Check out code for the container build | ||
uses: actions/checkout@v2 | ||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
images: bids/validator | ||
- name: Build Container | ||
run: | | ||
tags=${{ steps.meta.outputs.tags }} | ||
echo $tags | ||
singularity pull container.sif docker://${tags%,*} | ||
- name: Login and Deploy Container | ||
if: (github.event_name != 'pull_request') | ||
run: | | ||
tags=${{ steps.meta.outputs.tags }} | ||
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ github.actor }} --password-stdin oras://ghcr.io | ||
for tag in $(echo $tags | sed "s/,/ /g" | sed "s/bids\/validator/bids-standard\/bids-validator/g"); | ||
do echo $tag; singularity push container.sif oras://ghcr.io/$tag; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
FROM node:12.14.1-alpine | ||
FROM node:14-alpine | ||
|
||
COPY ./bids-validator /src | ||
COPY . /src | ||
|
||
RUN npm install -g /src | ||
RUN npm install -g npm | ||
WORKDIR /src | ||
RUN npm install | ||
RUN npm -w bids-validator run build | ||
RUN npm -w bids-validator pack | ||
RUN npm install -g bids-validator-*.tgz | ||
|
||
ENTRYPOINT ["/usr/local/bin/bids-validator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,3 @@ module.exports = { | |
} | ||
} | ||
} | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""BIDS validator common Python package.""" | ||
from ._version import get_versions | ||
from .bids_validator import BIDSValidator | ||
__version__ = get_versions()['version'] | ||
__all__ = ['BIDSValidator'] | ||
del get_versions | ||
|
||
from . import _version | ||
__version__ = _version.get_versions()['version'] |
Oops, something went wrong.