Skip to content
Snippets Groups Projects
Commit c660e88c authored by I. Nüske's avatar I. Nüske
Browse files

CI: Add python 3.14 to tests

parent 0be67e04
No related branches found
No related tags found
2 merge requests!138Release 0.14.0,!130Add python 3.14 release candidate to advancedtools pipeline
Pipeline #61581 passed
...@@ -162,6 +162,28 @@ unittest_py313: ...@@ -162,6 +162,28 @@ unittest_py313:
image: python:3.13 image: python:3.13
script: *python_test_script script: *python_test_script
unittest_py314:
allow_failure: true # remove on release
tags: [docker]
stage: unittest
image: python:3.14-rc
script: # replace by '*python_test_script' on release
# Install cargo manually, source its env, and set it to accept 3.14 as interpreter
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- . "$HOME/.cargo/env"
- export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
# Install hdf5 dependencies
- apt-get update -y
- apt-get install -y pkg-config libhdf5-dev
# Install packages
- pip install --break-system-packages git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
- pip install --break-system-packages .[all]
# Force pytest to current version as 6.x is incompatible with 3.14
- pip install --upgrade pip
- pip install pytest==8.3.4
# Run tests
- pytest --cov=caosadvancedtools unittests
# Build the sphinx documentation and make it ready for deployment by Gitlab Pages # Build the sphinx documentation and make it ready for deployment by Gitlab Pages
# Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages # Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages
pages_prepare: &pages_prepare pages_prepare: &pages_prepare
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment