88 - cron : " 0 8 * * *"
99
1010jobs :
11- # Run "pre-commit run --all-files --hook-stage=manual"
1211 pre-commit :
13- name : Run pre-commit hook
1412 runs-on : ubuntu-latest
15- timeout-minutes : 5
1613 steps :
17- - name : Checkout
18- uses : actions/checkout@v2
19- - name : Set up Python
20- uses : actions/setup-python@v3
21- - name : Run pre-commit
22- uses :
pre-commit/[email protected] 23- with :
24- extra_args : --all-files --hook-stage=manual
25- - name : Help message if pre-commit fail
26- if : ${{ failure() }}
27- run : |
28- echo "You can install pre-commit hooks to automatically run formatting"
29- echo "on each commit with:"
30- echo " pre-commit install"
31- echo "or you can run by hand on staged files with"
32- echo " pre-commit run"
33- echo "or after-the-fact on already committed files with"
34- echo " pre-commit run --all-files --hook-stage=manual"
14+ - uses : actions/checkout@v2
15+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
16+ - uses : jupyterlab/maintainer-tools/.github/actions/pre-commit@v1
3517
3618 test :
3719 runs-on : ${{ matrix.os }}
4628 python-version : " 3.9"
4729 - os : ubuntu-latest
4830 python-version : " pypy-3.8"
31+ - os : ubuntu-latest
32+ python-version : " 3.11-dev"
4933 - os : macos-latest
5034 python-version : " 3.8"
5135 steps :
@@ -55,22 +39,23 @@ jobs:
5539 uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
5640 - name : Install the Python dependencies
5741 run : |
58- pip install -e ".[test]" codecov
42+ pip install -e ".[test]"
5943 - name : List installed packages
6044 run : |
6145 pip freeze
6246 pip check
6347 - name : Run the tests with Coverage
6448 if : ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(runner.os, 'Windows') }}
6549 run : |
66- python -m pytest -vv --cov jupyter_server_terminals --cov-branch --cov-report term-missing:skip-covered
50+ pytest -vv --cov jupyter_server_terminals --cov-branch --cov-report term-missing:skip-covered || pytest -vv --lf
6751 - name : Run the tests on pypy and Windows
6852 if : ${{ startsWith(matrix.python-version, 'pypy') || startsWith(runner.os, 'Windows') }}
6953 run : |
70- python -m pytest -vv
54+ pytest -vv || pytest -vv --lf
7155 - name : Coverage
7256 if : ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(runner.os, 'Windows') }}
7357 run : |
58+ pip install codecov
7459 codecov
7560
7661 test_minimum_versions :
@@ -129,6 +114,21 @@ jobs:
129114 with :
130115 extra_test : ' jupyter server extension list 2>&1 | grep -ie "jupyter_server_terminals.*OK"'
131116
117+ check_release :
118+ runs-on : ubuntu-latest
119+ steps :
120+ - name : Checkout
121+ uses : actions/checkout@v2
122+ - name : Base Setup
123+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
124+ - name : Install Dependencies
125+ run : |
126+ pip install -e .
127+ - name : Check Release
128+ uses : jupyter-server/jupyter_releaser/.github/actions/check-release@v2
129+ with :
130+ token : ${{ secrets.GITHUB_TOKEN }}
131+
132132 check_links :
133133 runs-on : ubuntu-latest
134134 timeout-minutes : 10
0 commit comments