forked from pydicom/deid
-
Notifications
You must be signed in to change notification settings - Fork 0
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 pydicom#110 from pydicom/add/black
Adding black linter, testing github actions for pydicom
- Loading branch information
Showing
34 changed files
with
1,329 additions
and
1,220 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,41 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches_ignore: [] | ||
|
||
jobs: | ||
formatting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Setup black environment | ||
run: conda create --quiet --name black black | ||
|
||
- name: Check formatting | ||
run: | | ||
export PATH="/usr/share/miniconda/bin:$PATH" | ||
source activate black | ||
black --check --verbose deid | ||
testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Setup conda environment | ||
run: | | ||
conda create --quiet --name testing | ||
export PATH="/usr/share/miniconda/bin:$PATH" | ||
source activate testing | ||
python setup.py install | ||
- name: Test deid | ||
run: | | ||
export PATH="/usr/share/miniconda/bin:$PATH" | ||
source activate testing | ||
python -m unittest discover -s deid/tests/ -p '[t|T]est*.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
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,7 @@ | ||
include README.md LICENSE | ||
recursive-include deid * | ||
global-exclude __pycache__ | ||
global-exclude *.pyc | ||
prune __pycache__ | ||
prune *.pyc | ||
prune *.pyc | ||
prune deid/tests | ||
prune *OLD |
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.