diff options
author | Josh Spicer <joshspicer@github.com> | 2022-11-10 03:07:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 03:07:52 +0300 |
commit | ac02c107bedcc6d704c3591a2a212d9e65ede36c (patch) | |
tree | 2784701fcd5bcf25d1daaa6501be7351caffe596 /test/python | |
parent | 3020d6da64798ee994d407ffd3ce3f800f6dff92 (diff) |
Diffstat (limited to 'test/python')
-rwxr-xr-x | test/python/do_it.sh | 20 | ||||
-rw-r--r-- | test/python/scenarios.json | 41 |
2 files changed, 22 insertions, 39 deletions
diff --git a/test/python/do_it.sh b/test/python/do_it.sh new file mode 100755 index 0000000..ec72b52 --- /dev/null +++ b/test/python/do_it.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Always run these checks as the non-root user +user="$(whoami)" + +which python3 + +check "has python" python --version + +result=$(python3 -c 'import select; print(select)') +echo "result: $result" + +check "select is built-in" bash -c "python3 -c 'import select; print(select)' | grep 'built-in'" + +reportResults diff --git a/test/python/scenarios.json b/test/python/scenarios.json index 920f4a2..348ac52 100644 --- a/test/python/scenarios.json +++ b/test/python/scenarios.json @@ -1,43 +1,6 @@ { - "install_additional_python": { - "image": "ubuntu:focal", - "features": { - "python": { - "version": "3.11", - "additionalVersions": "3.8,3.9.13,3.10.5" - } - } - }, - "install_jupyterlab": { - "image": "mcr.microsoft.com/devcontainers/base:focal", - "remoteUser": "vscode", - "features": { - "python": { - "installJupyterlab": true, - "configureJupyterlabAllowOrigin": "*" - } - } - }, - "install_additional_jupyterlab": { - "image": "mcr.microsoft.com/devcontainers/base:focal", - "remoteUser": "vscode", - "features": { - "python": { - "version": "latest", - "additionalVersions": "3.9", - "installJupyterlab": true, - "configureJupyterlabAllowOrigin": "*" - } - } - }, - "install_os_provided_python": { - "image": "mcr.microsoft.com/devcontainers/base:0-bullseye", - "features": { - "python": "os-provided" - } - }, - "install_via_oryx": { - "image": "mcr.microsoft.com/oryx/build:full-debian-bullseye", + "do_it": { + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", "features": { "python": "3.10" } |