Merge pull request #817 from MridulS/test_2204

ci: run int. and unit tests on 22.04 LTS + py3.10
This commit is contained in:
Erik Sundell
2022-09-09 22:25:42 +02:00
committed by GitHub
2 changed files with 13 additions and 18 deletions

View File

@@ -66,22 +66,21 @@ jobs:
ubuntu_version: "20.04" ubuntu_version: "20.04"
python_version: "3.9" python_version: "3.9"
extra_flags: "" extra_flags: ""
- name: "Int. tests: Ubuntu 21.10, Py 3.9" - name: "Int. tests: Ubuntu 22.04, Py 3.10"
runs_on: "20.04" ubuntu_version: "22.04"
ubuntu_version: "21.10" python_version: "3.10"
python_version: "3.9"
extra_flags: "" extra_flags: ""
- name: "Int. tests: Ubuntu 20.04, Py 3.9, --upgrade" - name: "Int. tests: Ubuntu 22.04, Py 3.10, --upgrade"
ubuntu_version: "20.04" ubuntu_version: "22.04"
python_version: "3.9" python_version: "3.10"
extra_flags: --upgrade extra_flags: --upgrade
dont_run_on_ref: refs/heads/master dont_run_on_ref: refs/heads/master
integration-tests: integration-tests:
needs: decide-on-test-jobs-to-run needs: decide-on-test-jobs-to-run
# runs-on can only be configured to the LTS releases of ubuntu (18.04, # runs-on can only be configured to the LTS releases of ubuntu (20.04,
# 20.04, ...), so if we want to test against the latest non-LTS release, we # 22.04, ...), so if we want to test against the latest non-LTS release, we
# must compromise when configuring runs-on and configure runs-on to be the # must compromise when configuring runs-on and configure runs-on to be the
# latest LTS release instead. # latest LTS release instead.
# #
@@ -99,7 +98,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: ${{ matrix.python_version }} python-version: "${{ matrix.python_version }}"
- name: Install pytest - name: Install pytest
run: python3 -m pip install pytest run: python3 -m pip install pytest

View File

@@ -48,19 +48,15 @@ jobs:
- name: "Unit tests: Ubuntu 20.04, Py 3.9" - name: "Unit tests: Ubuntu 20.04, Py 3.9"
ubuntu_version: "20.04" ubuntu_version: "20.04"
python_version: "3.9" python_version: "3.9"
# Test against Ubuntu 21.10 fails as of 2021-10-18 fail with the error - name: "Unit tests: Ubuntu 22.04, Py 3.10"
# described in: https://github.com/jupyterhub/the-littlest-jupyterhub/issues/714#issuecomment-945154101 ubuntu_version: "22.04"
# python_version: "3.10"
# - name: "Unit tests: Ubuntu 21.10, Py 3.9"
# runs_on: "20.04"
# ubuntu_version: "21.10"
# 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: ${{ matrix.python_version }} python-version: "${{ matrix.python_version }}"
- name: Install venv, git and setup venv - name: Install venv, git and setup venv
run: | run: |