22
22
continue-on-error : true
23
23
strategy :
24
24
matrix :
25
- python-version : ["3.10"]
26
- install : ['pip']
27
- check : ['style', 'doctest', 'typing']
28
- pip-flags : ['']
29
- depends : ['REQUIREMENTS']
30
- env :
31
- DEPENDS : ${{ matrix.depends }}
32
- OPTIONAL_DEPENDS : ${{ matrix.optional-depends }}
33
- INSTALL_TYPE : ${{ matrix.install }}
34
- CHECK_TYPE : ${{ matrix.check }}
35
- EXTRA_PIP_FLAGS : ${{ matrix.pip-flags }}
25
+ check : ['style', 'doctest', 'typecheck']
36
26
37
27
steps :
38
28
- uses : actions/checkout@v3
@@ -42,26 +32,14 @@ jobs:
42
32
- name : Set up Python ${{ matrix.python-version }}
43
33
uses : actions/setup-python@v4
44
34
with :
45
- python-version : ${{ matrix.python-version }}
46
- architecture : ${{ matrix.architecture }}
35
+ python-version : 3
47
36
- name : Display Python version
48
37
run : python -c "import sys; print(sys.version)"
49
- - name : Create virtual environment
50
- run : tools/ci/create_venv.sh
51
- - name : Build archive
38
+ - name : Install tox
52
39
run : |
53
- source tools/ci/build_archive.sh
54
- echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
55
- - name : Install dependencies
56
- run : tools/ci/install_dependencies.sh
57
- - name : Install NiBabel
58
- run : tools/ci/install.sh
59
- - name : Run tests
60
- run : tools/ci/check.sh
61
- if : ${{ matrix.check != 'skiptests' }}
62
- - name : Upload pytest test results
63
- uses : actions/upload-artifact@v3
64
- with :
65
- name : pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
66
- path : for_testing/test-results.xml
67
- if : ${{ always() && matrix.check == 'test' }}
40
+ python -m pip install --upgrade pip
41
+ python -m pip install tox tox-gh-actions
42
+ - name : Run tox
43
+ run : tox
44
+ env :
45
+ CHECK : ${{ matrix.check }}
0 commit comments