Skip to content

Commit 0d85df5

Browse files
committed
Merge #17: Upgrade Semaphore CI image to 22.04
Approved-by: nishit-ndgr Priority: Normal Auto-deploy: false
2 parents 05c3c92 + 2aaedcb commit 0d85df5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.semaphore/semaphore.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: datetime_tz
44
agent:
55
machine:
66
type: f1-standard-2
7-
os_image: ubuntu2004
7+
os_image: ubuntu2204
88

99

1010
blocks:
@@ -21,12 +21,8 @@ blocks:
2121
jobs:
2222
- name: "Unit tests 3.9"
2323
commands:
24-
- "export PUBLISH_JUNIT_REPORT=true" # Export junit report from this job
25-
- "python3.9 -m pip install -e .[all]"
26-
- "python3.9 -m pytest tests"
27-
# Test without pydantic as well
28-
- "python3.9 -m pip uninstall pydantic -y"
29-
- "python3.9 -m pytest tests --ignore-glob \"./tests/pydantic_*.py\""
24+
# Semaphore does not have python3.11, so we run the tests using a Dockerfile
25+
- "sudo docker build --build-arg PYTHON_VERSION=3.9.13 -t py309 . && sudo docker run py309"
3026

3127
- name: "Unit tests 3.10"
3228
commands:
@@ -40,8 +36,12 @@ blocks:
4036

4137
- name: "Unit tests 3.12"
4238
commands:
43-
# Semaphore does not have python3.12, so we run the tests using a Dockerfile
44-
- "sudo docker build --build-arg PYTHON_VERSION=3.12.1 -t py312 . && sudo docker run py312"
39+
- "export PUBLISH_JUNIT_REPORT=true" # Export junit report from this job
40+
- "python3.12 -m pip install -e .[all]"
41+
- "python3.12 -m pytest tests"
42+
# Test without pydantic as well
43+
- "python3.12 -m pip uninstall pydantic -y"
44+
- "python3.12 -m pytest tests --ignore-glob \"./tests/pydantic_*.py\""
4545

4646
- name: "Unit tests 3.13"
4747
commands:

0 commit comments

Comments
 (0)