forked from jupyterhub/batchspawner
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action to for testing pytest; remove travis
- Test (with pytest) using Github Actions, since Travis is now limiting free projects. See jupyterhub/team-compass#353 . - Almost a direct translation of current .travis.yml, only minor edits to bring it up to date with some versions. - Remove .travis.yml - Review: - I don't know if codecov is used for anything - Is everyone happy with the python/JH version coverage? - General check for best practices
- Loading branch information
Showing
2 changed files
with
51 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
name: Python package | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-20.04 | ||
continue-on-error: ${{ matrix.allow_failure }} | ||
strategy: | ||
matrix: | ||
python-version: | ||
- '3.5' | ||
- '3.9' | ||
JHUB_VER: | ||
- '0.9.6' | ||
- '1.0.0' | ||
- '1.1.0' | ||
- '1.2.0' | ||
allow_failure: [false] | ||
include: | ||
- JHUB_VER: 'master' | ||
python-version: '3.9' | ||
allow_failure: true | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pytest | ||
pip install -r requirements.txt | ||
- name: Install nodejs dependencies | ||
run: | | ||
sudo npm install -g configurable-http-proxy | ||
- name: install JupyterHub | ||
run: | | ||
git clone --quiet --branch ${{ matrix.JHUB_VER }} https://github.com/jupyterhub/jupyterhub.git jupyterhub | ||
pip install --pre -r jupyterhub/dev-requirements.txt | ||
pip install --upgrade pytest | ||
pip install --pre -e jupyterhub | ||
- name: pytest | ||
run: | | ||
pytest --lf --cov batchspawner batchspawner/tests -v |
This file was deleted.
Oops, something went wrong.