Skip to content

Merge pull request #3600 from servoz/master #12

Merge pull request #3600 from servoz/master

Merge pull request #3600 from servoz/master #12

Workflow file for this run

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
concurrency:
group: contrib-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
stable:
# Check each OS, all supported Python, minimum versions and latest releases
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
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@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
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@v3
with:
file: coverage.xml
if: ${{ always() }}
- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
path: test-results.xml
if: ${{ always() && matrix.check == 'test' }}