35
35
os : ['ubuntu-latest', 'windows-latest', 'macos-latest']
36
36
python-version : ["3.9", "3.10", "3.11", "3.12"]
37
37
architecture : ['x64', 'x86']
38
- install : ['pip']
39
- check : ['test']
40
- pip-flags : ['PRE_PIP_FLAGS']
41
- depends : ['REQUIREMENTS']
42
- optional-depends : ['DEFAULT_OPT_DEPENDS']
43
- include :
44
- # Pydicom master
45
- - os : ubuntu-latest
46
- python-version : " 3.11"
47
- install : pip
48
- check : test
49
- pip-flags : ' '
50
- depends : REQUIREMENTS
51
- optional-depends : PYDICOM_MASTER
38
+ dependencies : ['pre']
52
39
exclude :
53
40
- os : ubuntu-latest
54
41
architecture : x86
57
44
- python-version : ' 3.12'
58
45
architecture : x86
59
46
60
- env :
61
- DEPENDS : ${{ matrix.depends }}
62
- OPTIONAL_DEPENDS : ${{ matrix.optional-depends }}
63
- INSTALL_TYPE : ${{ matrix.install }}
64
- CHECK_TYPE : ${{ matrix.check }}
65
- EXTRA_PIP_FLAGS : ${{ matrix.pip-flags }}
66
-
67
47
steps :
68
48
- uses : actions/checkout@v3
69
49
with :
@@ -77,19 +57,14 @@ jobs:
77
57
allow-prereleases : true
78
58
- name : Display Python version
79
59
run : python -c "import sys; print(sys.version)"
80
- - name : Create virtual environment
81
- run : tools/ci/create_venv.sh
82
- - name : Build archive
60
+ - name : Install tox
83
61
run : |
84
- source tools/ci/build_archive.sh
85
- echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
86
- - name : Install dependencies
87
- run : tools/ci/install_dependencies.sh
88
- - name : Install NiBabel
89
- run : tools/ci/install.sh
90
- - name : Run tests
91
- run : tools/ci/check.sh
92
- if : ${{ matrix.check != 'skiptests' }}
62
+ python -m pip install --upgrade pip
63
+ python -m pip install tox tox-gh-actions
64
+ - name : Run tox
65
+ run : tox
66
+ env :
67
+ DEPENDS : ${{ matrix.dependencies }}
93
68
- uses : codecov/codecov-action@v3
94
69
if : ${{ always() }}
95
70
with :
98
73
uses : actions/upload-artifact@v3
99
74
with :
100
75
name : pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
101
- path : for_testing/ test-results.xml
102
- if : ${{ always() && matrix.check == 'test' }}
76
+ path : test-results.xml
77
+ if : ${{ always() }}
0 commit comments