Skip to content

Commit e79ca61

Browse files
committed
implement test cleanup ideas
1 parent eccdfa6 commit e79ca61

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

.github/workflows/python-linux.yml

+24-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ on:
33
push:
44
branches: ["main"]
55
pull_request:
6-
branches: ["*"]
6+
schedule:
7+
- cron: "0 8 * * *"
8+
79
jobs:
810
# Run "pre-commit run --all-files"
911
pre-commit:
@@ -75,18 +77,36 @@ jobs:
7577
test_miniumum_verisons:
7678
name: Test Minimum Versions
7779
runs-on: ubuntu-latest
78-
strategy:
79-
matrix:
80-
python-version: ["3.7"]
8180
steps:
8281
- uses: actions/checkout@v2
8382
- name: Base Setup
8483
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
84+
with:
85+
python_version: "3.7"
8586
- name: Install miniumum versions
8687
uses: jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
8788
- name: Run the unit tests
8889
run: pytest -vv
8990

91+
test_prereleases:
92+
name: Test test_prereleases
93+
runs-on: ubuntu-latest
94+
steps:
95+
- name: Checkout
96+
uses: actions/checkout@v2
97+
- name: Base Setup
98+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
99+
- name: Install the Python dependencies
100+
run: |
101+
pip install --pre -e ".[test]"
102+
- name: List installed packages
103+
run: |
104+
pip freeze
105+
pip check
106+
- name: Run the tests
107+
run: |
108+
pytest -vv
109+
90110
make_sdist:
91111
name: Make SDist
92112
runs-on: ubuntu-latest

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ testpaths = [
1515
]
1616
timeout = 300
1717
timeout_method = "thread"
18+
filterwarnings = [
19+
# Fail on warnings
20+
"error"
21+
]
1822

1923
[tool.jupyter-releaser]
2024
skip = ["check-links"]

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ install_requires =
4040
Send2Trash
4141
terminado>=0.8.3
4242
prometheus_client
43-
anyio>=3.1.0,<4
43+
anyio>=3.1.0
4444
websocket-client
4545
packaging
46-
pywinpty(<2);os_name=='nt'
46+
pywinpty;os_name=='nt'
4747

4848
[options.extras_require]
4949
test =

0 commit comments

Comments
 (0)