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
52
- exclude :
53
- - os : ubuntu-latest
54
- architecture : x86
55
- - os : macos-latest
56
- architecture : x86
57
- - python-version : ' 3.12'
58
- architecture : x86
59
-
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 }}
38
+ dependencies : ['pre']
66
39
67
40
steps :
68
41
- uses : actions/checkout@v3
@@ -77,19 +50,14 @@ jobs:
77
50
allow-prereleases : true
78
51
- name : Display Python version
79
52
run : python -c "import sys; print(sys.version)"
80
- - name : Create virtual environment
81
- run : tools/ci/create_venv.sh
82
- - name : Build archive
53
+ - name : Install tox
83
54
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' }}
55
+ python -m pip install --upgrade pip
56
+ python -m pip install tox tox-gh-actions
57
+ - name : Run tox
58
+ run : tox
59
+ env :
60
+ DEPENDS : ${{ matrix.dependencies }}
93
61
- uses : codecov/codecov-action@v3
94
62
if : ${{ always() }}
95
63
with :
98
66
uses : actions/upload-artifact@v3
99
67
with :
100
68
name : pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
101
- path : for_testing/ test-results.xml
102
- if : ${{ always() && matrix.check == 'test' }}
69
+ path : test-results.xml
70
+ if : ${{ always() }}
0 commit comments