Skip to content

Commit 982639f

Browse files
committed
ci: Add support to test Python 3.14.0a6.
Signed-off-by: Paulo Vital <[email protected]>
1 parent 0a09482 commit 982639f

File tree

4 files changed

+55
-5
lines changed

4 files changed

+55
-5
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ jobs:
359359

360360
python314:
361361
docker:
362-
- image: public.ecr.aws/docker/library/python:3.14.0a5
362+
- image: public.ecr.aws/docker/library/python:3.14.0a6
363363
- image: public.ecr.aws/docker/library/postgres:16.2-bookworm
364364
environment:
365365
POSTGRES_USER: root

.tekton/pipeline.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ spec:
3838
- "sha256:ae24158f83adcb3ec1dead14356e6debc9f3125167624408d95338faacc5cce3"
3939
# public.ecr.aws/docker/library/python:3.13.2-bookworm
4040
- "sha256:90a15cf04e17111d514958f3b17186f2e239546f75530b1e301059f0b70de41f"
41-
# public.ecr.aws/docker/library/python:3.14.0a5-bookworm
42-
- "sha256:c00e5b4b511a77e0b11c52b88cb195c0dcc371e71d2f7ebb3ba1173387d71f92"
41+
# public.ecr.aws/docker/library/python:3.14.0a6-bookworm
42+
- "sha256:cc1702492859ae14ce2c417060215a94153a51f42954eb7fd5f275b5b3039926"
4343
taskRef:
4444
name: python-tracer-unittest-default-task
4545
workspaces:

.tekton/python-tracer-prepuller.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ spec:
7474
image: public.ecr.aws/docker/library/python@sha256:90a15cf04e17111d514958f3b17186f2e239546f75530b1e301059f0b70de41f
7575
command: ["sh", "-c", "'true'"]
7676
- name: prepuller-314
77-
# public.ecr.aws/docker/library/python:3.14.0a5-bookworm
78-
image: public.ecr.aws/docker/library/python@sha256:c00e5b4b511a77e0b11c52b88cb195c0dcc371e71d2f7ebb3ba1173387d71f92
77+
# public.ecr.aws/docker/library/python:3.14.0a6-bookworm
78+
image: public.ecr.aws/docker/library/python@sha256:cc1702492859ae14ce2c417060215a94153a51f42954eb7fd5f275b5b3039926
7979
command: ["sh", "-c", "'true'"]
8080

8181
# Use the pause container to ensure the Pod goes into a `Running` phase

run_tests.sh

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/usr/bin/env bash
2+
set -x
3+
4+
POSITIONAL_ARGS=()
5+
TESTS=("tests")
6+
7+
while [[ $# -gt 0 ]]; do
8+
case $1 in
9+
--aws)
10+
TESTS=("tests_aws")
11+
shift # past argument
12+
shift # past value
13+
;;
14+
--default)
15+
TESTS=("tests")
16+
shift # past argument
17+
shift # past value
18+
;;
19+
--all)
20+
TESTS=("tests tests_aws")
21+
shift # past argument
22+
shift # past value
23+
;;
24+
--cov)
25+
COVERAGE=True
26+
shift # past argument
27+
shift # past value
28+
;;
29+
-*|--*)
30+
echo "Unknown option 1" # save positional arg
31+
shift # past argument
32+
;;
33+
esac
34+
done
35+
36+
set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters
37+
38+
if [ -z ${COVERAGE} ]; then
39+
pytest -vv "${TESTS[@]}"
40+
else
41+
coverage run \
42+
--source=instana \
43+
--module pytest \
44+
--verbose \
45+
--junitxml=test-results \
46+
"${TESTS[@]}" # pytest options (not coverage options anymore)
47+
48+
coverage report -m
49+
coverage html
50+
fi

0 commit comments

Comments
 (0)