@@ -20,30 +20,32 @@ jobs:
2020 matrix :
2121 os : [ubuntu-latest, macos-latest, windows-latest]
2222 python-version : ["3.8", "3.9", "3.10"]
23+ testsuite : ["minimal", "full"]
2324 steps :
2425 - uses : actions/checkout@v2
2526 - name : set up python ${{ matrix.python-version }}
2627 uses : actions/setup-python@v2
2728 with :
2829 python-version : ${{ matrix.python-version }}
2930 cache : ' pip'
30- - name : install system dependencies
31- if : runner.os != 'Windows '
31+ - name : install system dependencies (linux)
32+ if : runner.os == 'Linux '
3233 # only managed to install system dependencies on Linux runners
3334 run : |
34- if [ "$RUNNER_OS" == "Linux" ]; then
35- sudo apt update
36- sudo apt install libgmp-dev libmpfr-dev libmpc-dev
37- fi
35+ sudo apt update
36+ sudo apt install libgmp-dev libmpfr-dev libmpc-dev
3837 - name : install python dependencies
3938 run : |
4039 python -m pip install --upgrade pip
4140 pip install tox
4241 - name : run tox (linux)
4342 # since system dependencies could only be installed on Linux runners, we run the "full" suite only on Linux ...
4443 if : runner.os == 'Linux'
45- run : tox -e py-full
46- - name : run tox (macos or windows)
47- # ... on all other OS we run the "recommendedextra" suite
48- if : runner.os != 'Linux'
49- run : tox -e py-recommendedextra
44+ run : tox -e py-${{ matrix.testsuite }} -- --hypothesis-profile=ci
45+ - name : run tox (macos or windows - minimal)
46+ if : runner.os != 'Linux' && matrix.testsuite == 'minimal'
47+ run : tox -e py-minimal -- --hypothesis-profile=ci
48+ - name : run tox (macos or windows - recommendedextra)
49+ # ... on all other OS we run the "recommendedextra" suite instead of the "full" suite
50+ if : runner.os != 'Linux' && matrix.testsuite == 'full'
51+ run : tox -e py-recommendedextra -- --hypothesis-profile=ci
0 commit comments