1
- name : Stable tests
1
+ name : Tests
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
- main
7
7
- maint/*
8
- - next
9
8
pull_request :
10
9
branches :
11
10
- main
12
11
- maint/*
13
- - next
12
+ # Allow job to be triggered manually from GitHub interface
13
+ workflow_dispatch :
14
14
15
15
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
@@ -31,42 +35,37 @@ jobs:
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 : ['full', '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
48
- - name : Install dependencies
49
- run : .maint/ci/install_dependencies.sh
50
52
- name : Set up Python ${{ matrix.python-version }}
51
53
uses : actions/setup-python@v5
52
54
with :
53
55
python-version : ${{ matrix.python-version }}
56
+ allow-prereleases : true
54
57
- name : Display Python version
55
58
run : python -c "import sys; print(sys.version)"
56
- - name : Create virtual environment
57
- run : .maint/ci/create_venv.sh
58
- - name : Build archive
59
+ - name : Install tox
59
60
run : |
60
- source .maint/ci/build_archive.sh
61
- echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
62
- - name : Install fMRIPost-AROMA
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
61
+ python -m pip install --upgrade pip
62
+ python -m pip install tox tox-gh-actions
63
+ - name : Show tox config
64
+ run : tox c
65
+ - name : Run tox
66
+ run : tox -v --exit-and-dump-after 1200
68
67
- uses : codecov/codecov-action@v4
68
+ if : ${{ always() }}
69
69
with :
70
- file : coverage .xml
70
+ files : cov .xml
71
71
token : ${{ secrets.CODECOV_TOKEN }}
72
- if : ${{ always() }}
0 commit comments