mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
ci: run unit tests against 18.04-20.04 and py36-py39
This commit is contained in:
21
.github/workflows/unit-test.yaml
vendored
21
.github/workflows/unit-test.yaml
vendored
@@ -24,16 +24,27 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-test:
|
unit-tests:
|
||||||
name: Unit tests
|
name: ${{ matrix.name }}
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-${{ matrix.ubuntu_version }}
|
||||||
container: ubuntu:18.04
|
container: ubuntu:${{ matrix.ubuntu_version }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: "Unit tests: Ubuntu 18.04, Py 3.6"
|
||||||
|
ubuntu_version: 18.04
|
||||||
|
python_version: 3.6
|
||||||
|
- name: "Unit tests: Ubuntu 20.04, Py 3.9"
|
||||||
|
ubuntu_version: 20.04
|
||||||
|
python_version: 3.9
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.6
|
python-version: ${{ matrix.python_version }}
|
||||||
|
|
||||||
- name: Install venv, git and setup venv
|
- name: Install venv, git and setup venv
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user