Skip to content

Commit 3abd45e

Browse files
authored
Move 3.11 to standard test job (#1584)
1 parent 4e9225e commit 3abd45e

File tree

1 file changed

+2
-52
lines changed

1 file changed

+2
-52
lines changed

.github/workflows/ci.yaml

+2-52
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
strategy:
8282
fail-fast: false
8383
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"]
8585
outputs:
8686
python-key: ${{ steps.generate-python-key.outputs.key }}
8787
steps:
@@ -130,61 +130,11 @@ jobs:
130130
name: coverage-${{ matrix.python-version }}
131131
path: .coverage
132132

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-
uses: actions/[email protected]
143-
- name: Set up Python ${{ matrix.python-version }}
144-
id: python
145-
uses: actions/[email protected]
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-
uses: actions/[email protected]
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-
uses: actions/[email protected]
178-
with:
179-
name: coverage-${{ matrix.python-version }}
180-
path: .coverage
181-
182133
coverage:
183134
name: tests / process / coverage
184135
runs-on: ubuntu-latest
185136
timeout-minutes: 5
186-
needs: ["tests-linux", "tests-linux-dev"]
187-
if: always() # remove together with tests-linux-dev
137+
needs: ["tests-linux"]
188138
strategy:
189139
matrix:
190140
python-version: [3.8]

0 commit comments

Comments
 (0)