Skip to content

Commit e53203a

Browse files
committed
more ci and pytest cleanup
1 parent 1c7d9b2 commit e53203a

File tree

3 files changed

+5
-35
lines changed

3 files changed

+5
-35
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ jobs:
122122
- name: Install miniumum versions
123123
uses: jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
124124
- name: Run the unit tests
125+
env: PYTHONWARNINGS=default
125126
run: pytest -vv jupyter_client || pytest -vv jupyter_client --lf
126127

127128
test_prereleases:
@@ -150,36 +151,14 @@ jobs:
150151
timeout-minutes: 10
151152
steps:
152153
- uses: actions/checkout@v2
153-
- name: Base Setup
154-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
155-
- name: Build SDist
156-
run: |
157-
pip install build
158-
python -m build --sdist
159-
- uses: actions/upload-artifact@v2
160-
with:
161-
name: "sdist"
162-
path: dist/*.tar.gz
154+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
155+
- uses: jupyterlab/maintainer-tools/.github/actions/make-sdist@v1
163156

164157
test_sdist:
165158
runs-on: ubuntu-latest
166159
needs: [make_sdist]
167160
name: Install from SDist and Test
168161
timeout-minutes: 20
169162
steps:
170-
- name: Base Setup
171-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
172-
- name: Download sdist
173-
uses: actions/download-artifact@v2
174-
- name: Install From SDist
175-
run: |
176-
set -ex
177-
cd sdist
178-
mkdir test
179-
tar --strip-components=1 -zxvf *.tar.gz -C ./test
180-
cd test
181-
pip install .[test]
182-
- name: Run Test
183-
run: |
184-
cd sdist/test
185-
pytest -vv || pytest -vv --lf
163+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
164+
- uses: jupyterlab/maintainer-tools/.github/actions/test-sdist@v1

pyproject.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,9 @@ filterwarnings= [
4949
# (To be fixed in Tornado 6.2)
5050
"ignore:There is no current event loop:DeprecationWarning:tornado",
5151

52-
# Workaround for distutils.Version used in ipykernel
53-
"ignore:The distutils package is deprecated and slated for removal:DeprecationWarning:ipykernel",
54-
5552
# ZMQ uses Future internally, which raises a DeprecationWarning
5653
# When there is no loop running.
5754
# We could eventually find a way to make sure these are only created
5855
# when there is a running event loop.
5956
"ignore:There is no current event loop:DeprecationWarning:zmq",
60-
61-
# Workaround for imp used in ipykernel
62-
"ignore:the imp module is deprecated in favour of importlib:DeprecationWarning"
6357
]

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[flake8]
22
max-line-length = 100
33

4-
[nosetests]
5-
warningfilters=default
6-
74
[metadata]
85
name = jupyter_client
96
version = attr: jupyter_client._version.__version__

0 commit comments

Comments
 (0)