Skip to content

[pre-commit.ci] pre-commit autoupdate #277

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #277

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/actions/learn-github-actions/workflow-syntax-for-github-actions
#
name: Test
on:
pull_request:
paths-ignore:
- "docs/**"
- "**.md"
- ".github/workflows/*"
- "!.github/workflows/test.yaml"
push:
paths-ignore:
- "docs/**"
- "**.md"
- ".github/workflows/*"
- "!.github/workflows/test.yaml"
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
workflow_dispatch:
jobs:
pytest:
# FIXME: ubuntu-20.04 comes with py36, but ubuntu-22.04 doesn't, so only
# bump this when we stop testing py36
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.6"
pip-install-spec: "jupyterhub==1.3.* sqlalchemy==1.*"
- python-version: "3.7"
pip-install-spec: "jupyterhub==1.4.* sqlalchemy==1.*"
- python-version: "3.8"
pip-install-spec: "jupyterhub==1.* sqlalchemy==1.*"
- python-version: "3.9"
pip-install-spec: "jupyterhub==2.* sqlalchemy==1.*"
- python-version: "3.10"
pip-install-spec: "jupyterhub==3.*"
- python-version: "3.11"
pip-install-spec: "jupyterhub==4.*"
- python-version: "3.x"
pip-install-spec: "--pre jupyterhub"
accept-failure: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install Python dependencies
run: |
pip install ${{ matrix.pip-install-spec }}
pip install ".[test]"
- name: List packages
run: pip freeze
- name: Run tests
continue-on-error: ${{ matrix.accept-failure == true }}
run: |
pytest --maxfail=2 --cov=nativeauthenticator
# GitHub action reference: https://github.com/codecov/codecov-action
- uses: codecov/codecov-action@v3