@@ -16,6 +16,10 @@ defaults:
16
16
run :
17
17
shell : bash
18
18
19
+ # Force tox and pytest to use color
20
+ env :
21
+ FORCE_COLOR : true
22
+
19
23
concurrency :
20
24
group : ${{ github.workflow }}-${{ github.ref }}
21
25
cancel-in-progress : true
@@ -24,47 +28,49 @@ permissions:
24
28
contents : read
25
29
26
30
jobs :
27
- stable :
31
+ test :
28
32
# Check each OS, all supported Python, minimum versions and latest releases
29
33
runs-on : ${{ matrix.os }}
30
34
strategy :
31
35
matrix :
32
36
os : ['ubuntu-latest']
33
37
python-version : ['3.10', '3.11', '3.12']
34
- install : ['pip']
35
- check : ['tests']
36
- pip-flags : ['']
38
+ dependencies : ['latest', 'pre']
39
+ include :
40
+ - os : ubuntu-latest
41
+ python-version : ' 3.10'
42
+ dependencies : ' min'
43
+
37
44
env :
38
- INSTALL_TYPE : ${{ matrix.install }}
39
- CHECK_TYPE : ${{ matrix.check }}
40
- EXTRA_PIP_FLAGS : ${{ matrix.pip-flags }}
41
- OS_TYPE : ${{ matrix.os }}
45
+ DEPENDS : ${{ matrix.dependencies }}
42
46
43
47
steps :
44
48
- uses : actions/checkout@v4
45
49
with :
46
50
submodules : recursive
47
51
fetch-depth : 0
52
+ - uses : actions/cache@v4
53
+ with :
54
+ path : ~/.cache/templateflow
55
+ key : templateflow-v1
48
56
- name : Install dependencies
49
- run : .maint/ci/install_dependencies.sh
57
+ run : |
58
+ sudo apt update
59
+ sudo apt install -y --no-install-recommends graphviz
50
60
- name : Set up Python ${{ matrix.python-version }}
51
61
uses : actions/setup-python@v5
52
62
with :
53
63
python-version : ${{ matrix.python-version }}
54
64
- name : Display Python version
55
65
run : python -c "import sys; print(sys.version)"
56
- - name : Create virtual environment
57
- run : .maint/ci/create_venv.sh
58
- - name : Build archive
66
+ - name : Install tox
59
67
run : |
60
- source .maint/ci/build_archive.sh
61
- echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
62
- - name : Install fMRIPrep
63
- run : .maint/ci/install.sh
64
- - name : Install extras
65
- run : .maint/ci/install_extras.sh
66
- - name : Run tests
67
- run : .maint/ci/check.sh
68
+ python -m pip install --upgrade pip
69
+ python -m pip install tox tox-gh-actions
70
+ - name : Show tox config
71
+ run : tox c
72
+ - name : Run tox
73
+ run : tox -v --exit-and-dump-after 1200
68
74
- uses : codecov/codecov-action@v4
69
75
with :
70
76
file : coverage.xml
0 commit comments