-
Notifications
You must be signed in to change notification settings - Fork 23
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 #198 from MICA-MNI/development
Version 0.2.2
- Loading branch information
Showing
121 changed files
with
3,666 additions
and
752 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 |
---|---|---|
|
@@ -30,9 +30,16 @@ jobs: | |
[[ -z $(git remote show origin | grep "Fetch URL:" | grep [email protected]:MICA-MNI/BrainStat.git) ]] && git config remote.upstream.fetch refs/heads/*:refs/remotes/upstream/* || git config remote.origin.fetch refs/heads/*:refs/origin/upstream/* | ||
git fetch origin test-data-2.0 | ||
python -m pip install --upgrade pip | ||
pip install pytest gitpython | ||
pip install pytest mypy gitpython | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Test with pytest | ||
shell: bash | ||
run: | | ||
python3 -m pytest | ||
- name: Test with mypy | ||
shell: bash | ||
if: ${{ matrix.python-version == 3.9 }} | ||
run: | | ||
python3 -m mypy $(find brainstat -path "*tests*" -prune -false -o -name "*.py") |
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,10 @@ | ||
import sys | ||
from typing import Any | ||
|
||
""" Python 3.6/3.7 compatibility for the ArrayLike type hint. | ||
In these versions we simply accept anything. The tests in 3.8+ | ||
should catch all errors anyway. """ | ||
if sys.version_info[1] >= 8: | ||
from numpy.typing import ArrayLike | ||
else: | ||
ArrayLike = Any |
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
Oops, something went wrong.