|
21 | 21 | os: [ubuntu-latest]
|
22 | 22 | python-version: ["3.10"]
|
23 | 23 | test-subset:
|
24 |
| - - tests |
| 24 | + - tests/model |
| 25 | + - tests/statespace/test_statespace.py |
| 26 | + - tests/statespace/test_kalman_filter.py |
| 27 | + - tests/statespace --ignore tests/statespace/test_statespace.py --ignore tests/statespace/test_kalman_filter.py |
| 28 | + - tests/distributions |
| 29 | + - tests --ignore tests/model --ignore tests/statespace --ignore tests/distributions |
25 | 30 | fail-fast: false
|
26 | 31 | runs-on: ${{ matrix.os }}
|
27 | 32 | env:
|
|
46 | 51 | python --version
|
47 | 52 | - name: Run tests
|
48 | 53 | run: |
|
49 |
| - python -m pytest -vv --cov=pymc_extras --cov-append --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET |
| 54 | + python -m pytest --color=yes -vv --cov=pymc_extras --cov-append --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET |
50 | 55 | - name: Upload coverage to Codecov
|
51 | 56 | uses: codecov/codecov-action@v2
|
52 | 57 | with:
|
|
59 | 64 | os: [windows-latest]
|
60 | 65 | python-version: ["3.12"]
|
61 | 66 | test-subset:
|
62 |
| - - tests |
| 67 | + - tests/model |
| 68 | + - tests/statespace/test_statespace.py |
| 69 | + - tests/statespace/test_kalman_filter.py |
| 70 | + - tests/statespace --ignore tests/statespace/test_statespace.py --ignore tests/statespace/test_kalman_filter.py |
| 71 | + - tests/distributions |
| 72 | + - tests --ignore tests/model --ignore tests/statespace --ignore tests/distributions |
63 | 73 | fail-fast: false
|
64 | 74 | runs-on: ${{ matrix.os }}
|
65 | 75 | env:
|
@@ -87,10 +97,19 @@ jobs:
|
87 | 97 | # This job uses a cmd shell, therefore the environment variable syntax is different!
|
88 | 98 | # The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682).
|
89 | 99 | run: >-
|
90 |
| - python -m pytest -vv --cov=pymc_extras --cov-append --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET% |
| 100 | + python -m pytest --color=yes -vv --cov=pymc_extras --cov-append --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET% |
91 | 101 | - name: Upload coverage to Codecov
|
92 | 102 | uses: codecov/codecov-action@v2
|
93 | 103 | with:
|
94 | 104 | env_vars: TEST_SUBSET
|
95 | 105 | name: ${{ matrix.os }}
|
96 | 106 | fail_ci_if_error: false
|
| 107 | + |
| 108 | + all_tests: |
| 109 | + if: ${{ always() }} |
| 110 | + runs-on: ubuntu-latest |
| 111 | + needs: [ ubuntu, windows ] |
| 112 | + steps: |
| 113 | + - name: Check all tests pass |
| 114 | + if: ${{ needs.ubuntu.result != 'success' || needs.windows.result != 'success' }} |
| 115 | + run: exit 1 |
0 commit comments