Skip to content

Commit 8fb7abb

Browse files
committed
CI: Run miscellaneous checks through tox
1 parent 7b2a0c3 commit 8fb7abb

File tree

1 file changed

+9
-31
lines changed

1 file changed

+9
-31
lines changed

.github/workflows/misc.yml

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,7 @@ jobs:
2222
continue-on-error: true
2323
strategy:
2424
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']
3626

3727
steps:
3828
- uses: actions/checkout@v3
@@ -42,26 +32,14 @@ jobs:
4232
- name: Set up Python ${{ matrix.python-version }}
4333
uses: actions/setup-python@v4
4434
with:
45-
python-version: ${{ matrix.python-version }}
46-
architecture: ${{ matrix.architecture }}
35+
python-version: 3
4736
- name: Display Python version
4837
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
5239
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

Comments
 (0)