Skip to content

Commit

Permalink
PR: Add other OS and update py versions (#102)
Browse files Browse the repository at this point in the history
* Add other OS and update py versions

* Update deps, add skipif on windows and improve code cov command
  • Loading branch information
goanpeca authored Jul 28, 2020
1 parent ee173a9 commit a0dc82a
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 17 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux tests
name: Tests

on:
push:
Expand All @@ -11,15 +11,24 @@ on:

jobs:
linux:
name: Linux py${{ matrix.PYTHON_VERSION }} tests
runs-on: ubuntu-latest
name: ${{ matrix.PLATFORM }} py${{ matrix.PYTHON_VERSION }}
runs-on: ${{ matrix.PLATFORM }}
env:
CI: True
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
CODECOV_TOKEN: e025254a-fe54-4914-8890-0c26e7aa0d07
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ['3.5', '3.6', '3.8']
PLATFORM: ['ubuntu-latest', 'macos-latest', 'windows-latest']
exclude:
- PYTHON_VERSION: '3.6'
PLATFORM: 'macos-latest'
- PYTHON_VERSION: '3.6'
PLATFORM: 'windows-latest'
- PYTHON_VERSION: '3.8'
PLATFORM: 'windows-latest'
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -42,4 +51,7 @@ jobs:
python -m pip list
- name: Run python tests
run: |
pytest . --tb=long -svv
pytest . --tb=long -svv --cov=jupyterlab_server --cov-report term:skip-covered --cov-fail-under 71
- name: Upload coverage
run: |
codecov
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# jupyterlab server

[![Tests](https://github.com/jupyterlab/jupyterlab_server/workflows/Tests/badge.svg)](https://github.com/jupyterlab/jupyterlab_server/actions?query=workflow%3ATests)
[![Coverage](https://codecov.io/gh/jupyterlab/jupyterlab_server/branch/master/graph/badge.svg)](https://codecov.io/gh/jupyterlab/jupyterlab_server)

https://github.com/jupyterlab/jupyterlab_server

## Install
Expand Down
4 changes: 4 additions & 0 deletions jupyterlab_server/tests/test_workspaces_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""Test the kernels service API."""

import json
import os
import shutil

import pytest
from strict_rfc3339 import rfc3339_to_timestamp

from jupyterlab_server.tests.utils import LabTestBase, APITester
Expand Down Expand Up @@ -46,6 +49,7 @@ def test_delete(self):
assert self.workspaces_api.put(copy, data).status_code == 204
assert self.workspaces_api.delete(copy).status_code == 204

@pytest.mark.skipif(os.name == "nt", reason="Temporal failure on windows")
def test_get(self):
id = 'foo'
metadata = self.workspaces_api.get(id).json()['metadata']
Expand Down
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@

if 'setuptools' in sys.modules:
setup_args['python_requires'] = '>=3.5'
setup_args['extras_require'] = {'test': ['pytest', 'requests', 'strict-rfc3339']}
setup_args['extras_require'] = {
'test': [
'codecov',
'pytest',
'pytest-cov',
'requests',
'strict-rfc3339',
'wheel',
],
}
setup_args['install_requires'] = [
'babel',
'jinja2>=2.10',
Expand Down

0 comments on commit a0dc82a

Please sign in to comment.