Skip to content

Commit 0f7ce8d

Browse files
authored
Merge pull request #198 from rkdarst/gh-actions
Add github action to for testing pytest; remove travis
2 parents af63472 + b6de5e1 commit 0f7ce8d

File tree

2 files changed

+55
-33
lines changed

2 files changed

+55
-33
lines changed

.github/workflows/test.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
name: Python package
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
build:
8+
9+
runs-on: ubuntu-20.04
10+
continue-on-error: ${{ matrix.allow_failure }}
11+
strategy:
12+
matrix:
13+
python-version:
14+
- '3.5'
15+
- '3.9'
16+
JHUB_VER:
17+
- '0.9.6'
18+
- '1.0.0'
19+
- '1.1.0'
20+
- '1.2.0'
21+
allow_failure: [false]
22+
include:
23+
- JHUB_VER: 'master'
24+
python-version: '3.9'
25+
allow_failure: true
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
python -m pip install pytest
38+
pip install -r requirements.txt
39+
- name: Install nodejs dependencies
40+
run: |
41+
sudo npm install -g configurable-http-proxy
42+
# We need to check compatibility with different versions of the JH
43+
# API, including latest development. For that, we also need to
44+
# pull in the dependencies of that old JH version (but we don't
45+
# need conda/npm for our tests).
46+
- name: install JupyterHub
47+
run: |
48+
git clone --quiet --branch ${{ matrix.JHUB_VER }} https://github.com/jupyterhub/jupyterhub.git jupyterhub
49+
pip install --pre -r jupyterhub/dev-requirements.txt
50+
pip install --upgrade pytest
51+
pip install --pre -e jupyterhub
52+
53+
- name: pytest
54+
run: |
55+
pytest --lf --cov batchspawner batchspawner/tests -v

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)