-
Notifications
You must be signed in to change notification settings - Fork 10
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
35 changed files
with
157 additions
and
174 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CICOV | ||
name: CI_COV | ||
|
||
on: | ||
push: | ||
|
@@ -43,24 +43,15 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('docs/requirements.txt') }} | ||
|
||
# Install dependencies | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade --upgrade-strategy eager pip | ||
pip install flake8 | ||
pip install coverage | ||
pip install -r requirements.txt | ||
pip install -r docs/requirements.txt | ||
pip install flake8 coverage -r requirements.txt -r docs/requirements.txt | ||
# Run flake8 only for Python 3.9 | ||
# Run flake8 | ||
- name: Lint with flake8 | ||
run: | | ||
pip install flake8 | ||
flake8 . --count --show-source --statistics --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
# Run unittest with coverage | ||
|
@@ -77,14 +68,12 @@ jobs: | |
HED_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
coverage run --append -m unittest discover spec_tests | ||
coverage xml | ||
ls -la | ||
# Publish the coverages | ||
- name: publish-coverages | ||
with: | ||
coverageCommand: coverage xml | ||
debug: false | ||
# Upload coverage to Code Climate | ||
- name: Upload coverage to Code Climate | ||
if: needs.check-secret.outputs.secrets-exist == 'true' | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
|
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
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 |
---|---|---|
|
@@ -18,5 +18,6 @@ def main(): | |
return 1 | ||
return 0 | ||
|
||
|
||
if __name__ == "__main__": | ||
sys.exit(main()) | ||
sys.exit(main()) |
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,14 +1,14 @@ | ||
""" Basic analysis tools. """ | ||
from .file_dictionary import FileDictionary | ||
from .annotation_util import (check_df_columns, df_to_hed, extract_tags, generate_sidecar_entry, get_bids_dataset, | ||
hed_to_df, str_to_tabular, strs_to_sidecar, to_strlist) | ||
from .event_manager import EventManager | ||
from .hed_tag_manager import HedTagManager | ||
from .hed_type_defs import HedTypeDefs | ||
from .hed_type_factors import HedTypeFactors | ||
from .hed_type import HedType | ||
from .hed_type_manager import HedTypeManager | ||
from .hed_type_counts import HedTypeCount | ||
from .key_map import KeyMap | ||
from .tabular_summary import TabularSummary | ||
from .temporal_event import TemporalEvent | ||
""" Basic analysis tools. """ | ||
from .file_dictionary import FileDictionary | ||
from .annotation_util import (check_df_columns, df_to_hed, extract_tags, generate_sidecar_entry, get_bids_dataset, | ||
hed_to_df, str_to_tabular, strs_to_sidecar, to_strlist) | ||
from .event_manager import EventManager | ||
from .hed_tag_manager import HedTagManager | ||
from .hed_type_defs import HedTypeDefs | ||
from .hed_type_factors import HedTypeFactors | ||
from .hed_type import HedType | ||
from .hed_type_manager import HedTypeManager | ||
from .hed_type_counts import HedTypeCount | ||
from .key_map import KeyMap | ||
from .tabular_summary import TabularSummary | ||
from .temporal_event import TemporalEvent |
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
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,8 +1,8 @@ | ||
# dummy setup file for versioneer | ||
|
||
import versioneer | ||
from setuptools import setup | ||
|
||
if __name__ == "__main__": | ||
setup(version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass()) | ||
# dummy setup file for versioneer | ||
|
||
import versioneer | ||
from setuptools import setup | ||
|
||
if __name__ == "__main__": | ||
setup(version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass()) |
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.