Skip to content

Commit 3c69e80

Browse files
authored
More CI Cleanup (#249)
1 parent 447a44a commit 3c69e80

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

.github/workflows/downstream.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ jobs:
2121
uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
2222
with:
2323
package_name: jupyterlab
24-
package_spec: "\".[test]\""
2524
test_command: "python -m jupyterlab.browser_check --no-browser-test"

.github/workflows/tests.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,23 @@ on:
99

1010
jobs:
1111
test:
12-
name: ${{ matrix.platform }} ${{ matrix.python_version }}
13-
runs-on: ${{ matrix.platform }}-latest
12+
name: ${{ matrix.os }} ${{ matrix.python-version }}
13+
runs-on: ${{ matrix.os }}
1414
env:
1515
CI: True
16-
PYTHON_VERSION: ${{ matrix.python_version }}
1716
CODECOV_TOKEN: e025254a-fe54-4914-8890-0c26e7aa0d07
1817
strategy:
1918
fail-fast: false
2019
matrix:
21-
python_version: ['3.7', '3.10', 'pypy-3.7']
22-
platform: ['ubuntu', 'macos', 'windows']
23-
exclude:
24-
- platform: windows
25-
python_version: pypy3
20+
os: [ubuntu-latest, windows-latest, macos-latest]
21+
python_version: ["3.7", "3.10"]
22+
include:
23+
- os: windows-latest
24+
python-version: "3.9"
25+
- os: ubuntu-latest
26+
python-version: "pypy-3.7"
27+
- os: macos-latest
28+
python-version: "3.8"
2629
steps:
2730
- name: Checkout
2831
uses: actions/checkout@v2
@@ -31,10 +34,15 @@ jobs:
3134
- name: Install project dependencies
3235
run: |
3336
pip install -e ".[test]"
34-
- name: Run python tests
35-
# See `setup.cfg` for full test options
37+
- name: Run the tests
38+
if: ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(matrix.os, 'windows') }}
39+
run: |
40+
args="-vv -raXs --cov jupyterlab_server --cov-branch --cov-report term-missing:skip-covered --durations 10 --color=yes --cov-fail-under 65"
41+
python -m pytest $args || python -m pytest $args --lf
42+
- name: Run the tests on pypy and windows
43+
if: ${{ startsWith(matrix.python_version, 'pypy') || startsWith(matrix.os, 'windows') }}
3644
run: |
37-
pytest
45+
python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
3846
- name: Upload coverage
3947
run: |
4048
codecov
@@ -97,7 +105,7 @@ jobs:
97105
- name: Install miniumum versions
98106
uses: jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
99107
- name: Run the unit tests
100-
run: pytest -vv|| pytest -vv --lf
108+
run: python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
101109

102110
test_prereleases:
103111
name: Test Prereleases
@@ -116,8 +124,7 @@ jobs:
116124
pip freeze
117125
pip check
118126
- name: Run the tests
119-
run: |
120-
pytest -vv || pytest -vv --lf
127+
run: python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
121128

122129
make_sdist:
123130
name: Make SDist
@@ -154,10 +161,9 @@ jobs:
154161
tar --strip-components=1 -zxvf *.tar.gz -C ./test
155162
cd test
156163
pip install .[test]
157-
pip install pytest-github-actions-annotate-failures
158164
- name: Run Test
159165
run: |
160166
cd sdist/test
161-
pytest -vv || pytest -vv --lf
167+
python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
162168
# Ensure that the pytest plugin is importable.
163169
python -c "from jupyterlab_server import pytest_plugin"

0 commit comments

Comments
 (0)