-
Notifications
You must be signed in to change notification settings - Fork 531
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 #3321 from nipy/ci/contrib
CI: Add specs and style checks
- Loading branch information
Showing
143 changed files
with
2,170 additions
and
2,344 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,18 @@ | ||
# Commits with messages like "STY: black" or "run black" | ||
f64bf338f630a9ee5cbe7a3ec98c68292897e720 | ||
83358d7f17aac07cb90d0330f11ea2322e2974d8 | ||
faef7d0f93013a700c882f709e98fb3cd36ebb03 | ||
d50c1858564c0b3073fb23c54886a0454cb66afa | ||
417b8897a116fcded5000e21e2b6ccbe29452a52 | ||
aaf677a87f64c485f3e305799e4a5dc73b69e5fb | ||
f763008442d88d8ce00ec266698268389415f8d6 | ||
b1eccafd4edc8503b02d715f5b5f6f783520fdf9 | ||
70db90349598cc7f26a4a513779529fba7d0a797 | ||
6c1d91d71f6f0db0e985bd2adc34206442b0653d | ||
97bdbd5f48ab242de5288ba4715192a27619a803 | ||
78fa360f5b785224349b8b85b07e510d2233bb63 | ||
7f85f43a34de8bff8e634232c939b17cee8e8fc5 | ||
9c50b5daa797def5672dd057155b0e2c658853e2 | ||
47194993ae14aceeec436cfb3769def667196668 | ||
75653feadc6667d5313d83e9c62a5d5819771a9c | ||
497b44d680eee0892fa59c6aaaae22a17d70a536 |
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,76 @@ | ||
name: Contribution checks | ||
|
||
# This checks validate contributions meet baseline checks | ||
# | ||
# * specs - Ensure make | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- maint/* | ||
pull_request: | ||
branches: | ||
- master | ||
- maint/* | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
stable: | ||
# Check each OS, all supported Python, minimum versions and latest releases | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-18.04'] | ||
python-version: [3.8] | ||
nipype-extras: ['dev'] | ||
check: ['specs', 'style'] | ||
env: | ||
DEPENDS: "" | ||
CHECK_TYPE: ${{ matrix.check }} | ||
NIPYPE_EXTRAS: ${{ matrix.nipype-extras }} | ||
EXTRA_PIP_FLAGS: "" | ||
INSTALL_DEB_DEPENDENCIES: false | ||
INSTALL_TYPE: pip | ||
CI_SKIP_TEST: 1 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Create virtual environment | ||
run: tools/ci/create_venv.sh | ||
- name: Build archive | ||
run: | | ||
source tools/ci/build_archive.sh | ||
echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV | ||
- name: Install Debian dependencies | ||
run: tools/ci/install_deb_dependencies.sh | ||
if: ${{ matrix.os == 'ubuntu-18.04' }} | ||
- name: Install dependencies | ||
run: tools/ci/install_dependencies.sh | ||
- name: Install Nipype | ||
run: tools/ci/install.sh | ||
- name: Run tests | ||
run: tools/ci/check.sh | ||
if: ${{ matrix.check != 'skiptests' }} | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: coverage.xml | ||
if: ${{ always() }} | ||
- name: Upload pytest test results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }} | ||
path: test-results.xml | ||
if: ${{ always() && matrix.check == 'test' }} |
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
Oops, something went wrong.