Skip to content

ci: test against jupyterhub 5 #145

ci: test against jupyterhub 5

ci: test against jupyterhub 5 #145

Workflow file for this run

# This is a GitHub workflow defining a set of jobs with a set of steps.
# ref: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
#
name: Test
on:
pull_request:
paths-ignore:
- "**.md"
- ".github/workflows/*"
- "!.github/workflows/test.yaml"
push:
paths-ignore:
- "**.md"
- ".github/workflows/*"
- "!.github/workflows/test.yaml"
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
tags:
- "**"
workflow_dispatch:
jobs:
pytest:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.7"
jupyterhub-version: 1.*
sqlalchemy-version: 1.*
runs-on: ubuntu-22.04
- python-version: "3.8"
jupyterhub-version: 2.*
sqlalchemy-version: 1.*
runs-on: ubuntu-22.04
- python-version: "3.9"
jupyterhub-version: 3.0.*
sqlalchemy-version: 1.*
runs-on: ubuntu-latest
- python-version: "3.10"
jupyterhub-version: 3.*
runs-on: ubuntu-latest
- python-version: "3.11"
jupyterhub-version: 4.*
runs-on: ubuntu-latest
- python-version: "3.12"
jupyterhub-version: 5.*
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install configurable-http-proxy
run: |
npm install -g configurable-http-proxy
- name: Install Python dependencies
run: |
pip install -e ".[test]"
- name: Install specified jupyterhub version
if: ${{ matrix.jupyterhub-version }}
run: |
pip install --pre jupyterhub==${{ matrix.jupyterhub-version }}
- name: Install specified sqlalchemy version
if: ${{ matrix.sqlalchemy-version }}
run: |
pip install sqlalchemy==${{ matrix.sqlalchemy-version }}
- name: List Python dependencies
run: |
pip freeze
- name: Run tests
run: |
pytest --maxfail=2
- uses: codecov/codecov-action@v4