-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1087 from mnoergaard/martin
[ENH] Update BEP009 with newest version of validator #1085
- Loading branch information
Showing
90 changed files
with
3,792 additions
and
4,484 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Python tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [3.7] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install git-annex ubuntu | ||
if: matrix.platform == 'ubuntu-latest' | ||
shell: bash -l {0} | ||
run: conda install -c conda-forge git-annex | ||
|
||
- name: Install git-annex macos | ||
if: matrix.platform == 'macos-latest' | ||
shell: bash -l {0} | ||
run: brew install git-annex | ||
|
||
- name: Install git-annex windows | ||
if: matrix.platform == 'windows-latest' | ||
uses: crazy-max/ghaction-chocolatey@v1 | ||
with: | ||
args: install git-annex --yes --ignore-checksums | ||
|
||
- name: Install remaining dependencies | ||
shell: bash -l {0} | ||
run: | | ||
which python | ||
pip install datalad | ||
pip install pytest pytest-sugar flake8 pydocstyle | ||
pip install -e ./bids-validator | ||
- name: Check formatting | ||
shell: bash -l {0} | ||
run: | | ||
flake8 bids-validator/bids_validator | ||
pydocstyle bids-validator/bids_validator/bids_validator.py | ||
- name: Test with pytest | ||
shell: bash -l {0} | ||
run: | | ||
pytest --doctest-modules bids-validator/bids_validator --verbose |
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
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
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
Oops, something went wrong.