Skip to content

Commit 9393fe7

Browse files
authored
Merge pull request dstl#1124 from dstl/python3_13-tests
Use full test template for Python 3.13 CircleCI config
2 parents 05d8c8d + ba10d5e commit 9393fe7

File tree

1 file changed

+1
-32
lines changed

1 file changed

+1
-32
lines changed

.circleci/config.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -63,40 +63,9 @@ jobs:
6363
docker:
6464
- image: cimg/python:3.12
6565
test-313:
66+
<<: *test-template
6667
docker:
6768
- image: cimg/python:3.13
68-
steps:
69-
- checkout
70-
- restore_cache:
71-
key: dependencies-{{ .Environment.CACHE_VERSION }}-{{ checksum "/home/circleci/.pyenv/version" }}-{{ checksum "pyproject.toml" }}
72-
- run:
73-
name: Install Dependencies
74-
command: |
75-
python -m venv venv
76-
. venv/bin/activate
77-
pip install --upgrade pip
78-
pip install -e .[ehm,optuna,orbital] opencv-python-headless plotly pytest-cov pytest-remotedata pytest-skip-slow pyehm confluent-kafka h5py pandas
79-
- save_cache:
80-
paths:
81-
- ./venv
82-
key: dependencies-{{ .Environment.CACHE_VERSION }}-{{ checksum "/home/circleci/.pyenv/version" }}-{{ checksum "pyproject.toml" }}
83-
- run:
84-
name: Run Tests
85-
command: |
86-
. venv/bin/activate
87-
mkdir test-reports
88-
pytest --junitxml=test-reports/junit.xml --cov --cov-report=xml:test-reports/coverage.xml --slow stonesoup
89-
- store_test_results:
90-
path: test-reports/junit.xml
91-
- store_artifacts:
92-
path: test-reports
93-
- run:
94-
name: Upload Coverage Results
95-
command: |
96-
bash <(curl -s https://codecov.io/bash) \
97-
-f test-reports/coverage.xml \
98-
-F unittests \
99-
-n ${CIRCLE_BUILD_NUM}
10069
flake8:
10170
docker:
10271
- image: cimg/python:3.12

0 commit comments

Comments
 (0)