Skip to content

Commit ddaff1a

Browse files
authored
Combine ci pytest jobs (#159)
1 parent 36299cc commit ddaff1a

1 file changed

Lines changed: 2 additions & 31 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ jobs:
174174
mypy ${{ env.LIB_FOLDER }} tests
175175
176176
177-
prepare-tests-linux:
178-
name: Prepare tests for Python ${{ matrix.python-version }} (Linux)
177+
pytest-linux:
178+
name: Run tests Python ${{ matrix.python-version }} (Linux)
179179
runs-on: ubuntu-latest
180180
strategy:
181181
matrix:
@@ -214,35 +214,6 @@ jobs:
214214
python -m pip install -U pip setuptools wheel
215215
pip install -U -r requirements_test.txt
216216
pip install -e .
217-
218-
pytest-linux:
219-
name: Run tests Python ${{ matrix.python-version }} (Linux)
220-
runs-on: ubuntu-latest
221-
needs: prepare-tests-linux
222-
strategy:
223-
fail-fast: false
224-
matrix:
225-
python-version: [3.8, 3.9]
226-
steps:
227-
- name: Check out code from GitHub
228-
uses: actions/[email protected]
229-
- name: Set up Python ${{ matrix.python-version }}
230-
id: python
231-
uses: actions/[email protected]
232-
with:
233-
python-version: ${{ matrix.python-version }}
234-
- name: Restore Python virtual environment
235-
id: cache-venv
236-
uses: actions/[email protected]
237-
with:
238-
path: venv
239-
key: ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
240-
needs.prepare-tests-linux.outputs.python-key }}
241-
- name: Fail job if Python cache restore failed
242-
if: steps.cache-venv.outputs.cache-hit != 'true'
243-
run: |
244-
echo "Failed to restore Python venv from cache"
245-
exit 1
246217
- name: Run pytest
247218
run: |
248219
. venv/bin/activate

0 commit comments

Comments
 (0)