mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
ci: ensure all tests adjust based on matrix.ubuntu_version
This commit is contained in:
6
.github/workflows/integration-test.yaml
vendored
6
.github/workflows/integration-test.yaml
vendored
@@ -123,6 +123,12 @@ jobs:
|
|||||||
pytest --verbose --maxfail=2 --color=yes --durations=10 --capture=no \
|
pytest --verbose --maxfail=2 --color=yes --durations=10 --capture=no \
|
||||||
integration-tests/test_bootstrap.py
|
integration-tests/test_bootstrap.py
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
|
env:
|
||||||
|
# integration-tests/test_bootstrap.py will build and start containers
|
||||||
|
# based on this environment variable. This is similar to how
|
||||||
|
# .github/integration-test.py build-image can take a --build-arg
|
||||||
|
# setting the ubuntu_version.
|
||||||
|
UBUNTU_VERSION: ${{ matrix.ubuntu_version }}
|
||||||
|
|
||||||
- name: Run basic tests
|
- name: Run basic tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -117,7 +117,10 @@ def test_ubuntu_too_old():
|
|||||||
|
|
||||||
|
|
||||||
def test_inside_no_systemd_docker():
|
def test_inside_no_systemd_docker():
|
||||||
output = run_bootstrap_after_preparing_container("plain-docker-test", "ubuntu:18.04")
|
output = run_bootstrap_after_preparing_container(
|
||||||
|
"plain-docker-test",
|
||||||
|
f"ubuntu:{os.getenv('UBUNTU_VERSION', '20.04')}",
|
||||||
|
)
|
||||||
assert "Systemd is required to run TLJH" in output.stdout
|
assert "Systemd is required to run TLJH" in output.stdout
|
||||||
assert output.returncode == 1
|
assert output.returncode == 1
|
||||||
|
|
||||||
@@ -150,7 +153,10 @@ def verify_progress_page(expected_status_code, timeout):
|
|||||||
def test_progress_page():
|
def test_progress_page():
|
||||||
with concurrent.futures.ThreadPoolExecutor() as executor:
|
with concurrent.futures.ThreadPoolExecutor() as executor:
|
||||||
installer = executor.submit(
|
installer = executor.submit(
|
||||||
run_bootstrap_after_preparing_container, "progress-page", "ubuntu:18.04", True
|
run_bootstrap_after_preparing_container,
|
||||||
|
"progress-page",
|
||||||
|
f"ubuntu:{os.getenv('UBUNTU_VERSION', '20.04')}",
|
||||||
|
True
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check if progress page started
|
# Check if progress page started
|
||||||
|
|||||||
Reference in New Issue
Block a user