|
| 1 | +name: Stable tests |
| 2 | + |
| 3 | +# This file tests the claimed support range of nipype including |
| 4 | +# |
| 5 | +# * Operating systems: Linux, OSX |
| 6 | +# * Dependencies: minimum requirements, optional requirements |
| 7 | +# * Installation methods: setup.py, sdist, wheel, archive |
| 8 | + |
| 9 | +on: |
| 10 | + push: |
| 11 | + branches: |
| 12 | + - master |
| 13 | + - maint/* |
| 14 | + pull_request: |
| 15 | + branches: |
| 16 | + - master |
| 17 | + - maint/* |
| 18 | + |
| 19 | +defaults: |
| 20 | + run: |
| 21 | + shell: bash |
| 22 | + |
| 23 | +jobs: |
| 24 | + stable: |
| 25 | + # Check each OS, all supported Python, minimum versions and latest releases |
| 26 | + runs-on: ${{ matrix.os }} |
| 27 | + strategy: |
| 28 | + matrix: |
| 29 | + os: ['ubuntu-18.04'] |
| 30 | + python-version: [3.6, 3.7, 3.8, 3.9] |
| 31 | + check: ['test'] |
| 32 | + pip-flags: [''] |
| 33 | + depends: ['REQUIREMENTS'] |
| 34 | + deb-depends: [false] |
| 35 | + nipype-extras: ['doc,tests,profiler'] |
| 36 | + include: |
| 37 | + - os: ubuntu-18.04 |
| 38 | + python-version: 3.8 |
| 39 | + check: test |
| 40 | + pip-flags: '' |
| 41 | + depends: REQUIREMENTS |
| 42 | + deb-depends: true |
| 43 | + nipype-extras: doc,tests,nipy,profiler,duecredit,ssh |
| 44 | + env: |
| 45 | + DEPENDS: ${{ matrix.depends }} |
| 46 | + CHECK_TYPE: ${{ matrix.check }} |
| 47 | + EXTRA_PIP_FLAGS: ${{ matrix.pip-flags }} |
| 48 | + INSTALL_DEB_DEPENDENCIES: ${{ matrix.deb-depends }} |
| 49 | + NIPYPE_EXTRAS: ${{ matrix.nipype-extras }} |
| 50 | + INSTALL_TYPE: pip |
| 51 | + CI_SKIP_TEST: 1 |
| 52 | + |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v2 |
| 55 | + with: |
| 56 | + submodules: recursive |
| 57 | + fetch-depth: 0 |
| 58 | + - name: Set up Python ${{ matrix.python-version }} |
| 59 | + uses: actions/setup-python@v2 |
| 60 | + with: |
| 61 | + python-version: ${{ matrix.python-version }} |
| 62 | + - name: Display Python version |
| 63 | + run: python -c "import sys; print(sys.version)" |
| 64 | + - name: Create virtual environment |
| 65 | + run: tools/ci/create_venv.sh |
| 66 | + - name: Build archive |
| 67 | + run: | |
| 68 | + source tools/ci/build_archive.sh |
| 69 | + echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV |
| 70 | + - name: Install Debian dependencies |
| 71 | + run: tools/ci/install_deb_dependencies.sh |
| 72 | + if: ${{ matrix.os == 'ubuntu-18.04' }} |
| 73 | + - name: Install dependencies |
| 74 | + run: tools/ci/install_dependencies.sh |
| 75 | + - name: Install Nipype |
| 76 | + run: tools/ci/install.sh |
| 77 | + - name: Run tests |
| 78 | + run: tools/ci/check.sh |
| 79 | + if: ${{ matrix.check != 'skiptests' }} |
| 80 | + - uses: codecov/codecov-action@v1 |
| 81 | + with: |
| 82 | + file: coverage.xml |
| 83 | + if: ${{ always() }} |
| 84 | + - name: Upload pytest test results |
| 85 | + uses: actions/upload-artifact@v2 |
| 86 | + with: |
| 87 | + name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }} |
| 88 | + path: test-results.xml |
| 89 | + if: ${{ always() && matrix.check == 'test' }} |
0 commit comments