-
Notifications
You must be signed in to change notification settings - Fork 39
62 lines (55 loc) · 1.6 KB
/
Copy pathtest.yaml
File metadata and controls
62 lines (55 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Test
on:
pull_request:
paths-ignore:
- ".github/workflows/*.yaml"
- "!.github/workflows/test.yaml"
push:
paths-ignore:
- ".github/workflows/*.yaml"
- "!.github/workflows/test.yaml"
branches-ignore:
- "dependabot/**"
- "pre-commit-ci-update-config"
tags: ["**"]
schedule:
# At 05:00 on Monday - https://crontab.guru
- cron: "0 5 * * 1"
workflow_dispatch:
jobs:
pytest:
runs-on: ubuntu-24.04
timeout-minutes: 10
strategy:
# Keep running even if one variation of the job fail
fail-fast: false
matrix:
include:
- python-version: "3.9"
pip-install-spec: "jupyterhub==4.*"
- python-version: "3.11"
pip-install-spec: "jupyterhub==5.*"
- python-version: "3.13"
pip-install-spec: "jupyterhub"
- python-version: "3.x"
pip-install-spec: "--pre jupyterhub"
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install ${{ matrix.pip-install-spec }}
pip install -e ".[test]"
- name: Run pytest
run: |
if [[ "${{ matrix.python }}" == "3.12" ]]; then
# TODO: there is some issue with Python 3.12 and coverage that
# causes a test suite failure
pytest
else
pytest --cov=sudospawner
fi
- uses: codecov/codecov-action@v6