Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up workflows #747

Merged
merged 11 commits into from
Mar 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions .github/workflows/python-macos.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Jupyter Server Tests [Linux]
name: Jupyter Server Tests
on:
push:
branches: ["main"]
Expand Down Expand Up @@ -37,8 +37,15 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7"]
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.7", "3.10"]
include:
- os: windows-latest
python-version: "3.9"
- os: ubuntu-latest
python-version: "pypy-3.7"
- os: macos-latest
python-version: "3.8"
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -47,35 +54,41 @@ jobs:
- name: Install the Python dependencies
run: |
pip install -e ".[test]" codecov
- name: List installed packages
run: |
pip freeze
pip check
- name: Run the tests
if: ${{ matrix.python-version != 'pypy-3.7' }}
if: ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(matrix.os, 'windows') }}
run: |
pytest -vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered --cov-fail-under 70 || pytest -vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered --cov-fail-under 70 --lf
- name: Run the tests on pypy
if: ${{ matrix.python-version == 'pypy-3.7' }}
args="-vv -raXs --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered --durations 10 --color=yes --cov-fail-under 70"
python -m pytest $args || python -m pytest $args --lf
- name: Run the tests on pypy and windows
if: ${{ startsWith(matrix.python-version, 'pypy') || startsWith(matrix.os, 'windows') }}
run: |
pytest -vv || pytest -vv -lf
python -m pytest -vv -raXs || python -m pytest -vv -raXs --lf
- name: Coverage
run: |
codecov

test_docs_and_examples:
name: Test Docs and Examples
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install the Python dependencies for the examples
run: |
pip install -e ".[test]"
cd examples/simple && pip install -e .
- name: Run the tests for the examples
run: |
pytest examples/simple
- name: Coverage
if: ${{ matrix.python-version != 'pypy-3.7' }}
run: |
codecov
python -m pytest examples/simple
- name: Test the docs
run: |
cd docs
pip install -r doc-requirements.txt
make html SPHINXOPTS="-W"

test_miniumum_verisons:
test_miniumum_versions:
name: Test Minimum Versions
timeout-minutes: 20
runs-on: ubuntu-latest
Expand All @@ -88,7 +101,9 @@ jobs:
- name: Install miniumum versions
uses: jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
- name: Run the unit tests
run: pytest -vv|| pytest -vv --lf
run: |
args="-vv -raXs --durations 10 --color=yes"
pytest $args || pytest $args --lf

test_prereleases:
name: Test Prereleases
Expand All @@ -108,7 +123,8 @@ jobs:
pip check
- name: Run the tests
run: |
pytest -vv || pytest -vv --lf
args="-vv -raXs --durations 10 --color=yes"
pytest $args || pytest $args --lf

make_sdist:
name: Make SDist
Expand Down Expand Up @@ -142,11 +158,11 @@ jobs:
set -ex
cd sdist
mkdir test
tar --strip-components=1 -zxvf jupyter_server* -C ./test
tar --strip-components=1 -zxvf *.tar.gz -C ./test
cd test
pip install .[test]
pip install pytest-github-actions-annotate-failures
- name: Run Test
run: |
cd sdist/test
pytest -vv || pytest -vv --lf
args="-vv -raXs --durations 10 --color=yes"
pytest $args || pytest $args --lf
42 changes: 0 additions & 42 deletions .github/workflows/python-windows.yml

This file was deleted.