|
81 | 81 | strategy:
|
82 | 82 | fail-fast: false
|
83 | 83 | matrix:
|
84 |
| - python-version: [3.7, 3.8, 3.9, "3.10"] |
| 84 | + python-version: [3.7, 3.8, 3.9, "3.10", "3.11-dev"] |
85 | 85 | outputs:
|
86 | 86 | python-key: ${{ steps.generate-python-key.outputs.key }}
|
87 | 87 | steps:
|
@@ -130,61 +130,11 @@ jobs:
|
130 | 130 | name: coverage-${{ matrix.python-version }}
|
131 | 131 | path: .coverage
|
132 | 132 |
|
133 |
| - tests-linux-dev: |
134 |
| - name: tests / run / ${{ matrix.python-version }} / Linux |
135 |
| - runs-on: ubuntu-latest |
136 |
| - timeout-minutes: 20 |
137 |
| - strategy: |
138 |
| - matrix: |
139 |
| - python-version: ["3.11-dev"] |
140 |
| - steps: |
141 |
| - - name: Check out code from GitHub |
142 |
| - |
143 |
| - - name: Set up Python ${{ matrix.python-version }} |
144 |
| - id: python |
145 |
| - |
146 |
| - with: |
147 |
| - python-version: ${{ matrix.python-version }} |
148 |
| - - name: Generate partial Python venv restore key |
149 |
| - id: generate-python-key |
150 |
| - run: >- |
151 |
| - echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{ |
152 |
| - hashFiles('setup.cfg', 'requirements_test.txt', 'requirements_test_min.txt', |
153 |
| - 'requirements_test_brain.txt') }}" |
154 |
| - - name: Restore Python virtual environment |
155 |
| - id: cache-venv |
156 |
| - |
157 |
| - with: |
158 |
| - path: venv |
159 |
| - key: >- |
160 |
| - ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ |
161 |
| - steps.generate-python-key.outputs.key }} |
162 |
| - restore-keys: | |
163 |
| - ${{ runner.os }}-${{ steps.python.outputs.python-version }}-venv-${{ env.CACHE_VERSION }}- |
164 |
| - - name: Create Python virtual environment |
165 |
| - if: steps.cache-venv.outputs.cache-hit != 'true' |
166 |
| - run: | |
167 |
| - python -m venv venv |
168 |
| - . venv/bin/activate |
169 |
| - python -m pip install -U pip setuptools wheel |
170 |
| - pip install -U -r requirements_test.txt -r requirements_test_brain.txt |
171 |
| - pip install -e . |
172 |
| - - name: Run pytest |
173 |
| - run: | |
174 |
| - . venv/bin/activate |
175 |
| - pytest --cov --cov-report= tests/ |
176 |
| - - name: Upload coverage artifact |
177 |
| - |
178 |
| - with: |
179 |
| - name: coverage-${{ matrix.python-version }} |
180 |
| - path: .coverage |
181 |
| - |
182 | 133 | coverage:
|
183 | 134 | name: tests / process / coverage
|
184 | 135 | runs-on: ubuntu-latest
|
185 | 136 | timeout-minutes: 5
|
186 |
| - needs: ["tests-linux", "tests-linux-dev"] |
187 |
| - if: always() # remove together with tests-linux-dev |
| 137 | + needs: ["tests-linux"] |
188 | 138 | strategy:
|
189 | 139 | matrix:
|
190 | 140 | python-version: [3.8]
|
|
0 commit comments