Skip to content

Commit 26ce650

Browse files
ci: test against xad-py main until xad 2.1 is on PyPI
1 parent fc71242 commit 26ce650

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/quantlib-risks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
env:
8181
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform.build }}
8282
# Linux builds run in containers: ccache installed there, cache on the host (/host)
83-
CIBW_BEFORE_ALL_LINUX: dnf install -y ccache || apk add --no-cache ccache
83+
CIBW_BEFORE_ALL_LINUX: dnf install -y ccache git || apk add --no-cache ccache git
8484
CIBW_INHERIT: "before-all-linux: prepend"
8585
CIBW_ENVIRONMENT_LINUX: >-
8686
CMAKE_CXX_COMPILER_LAUNCHER=ccache

‎pyproject.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ build-verbosity = 1
116116
before-all = "cmake -DPREFIX={project}/build/quantlib-prefix -P {project}/tools/build-quantlib.cmake"
117117
config-settings = { "cmake.define.QLR_QUANTLIB_PREFIX" = "{project}/build/quantlib-prefix" }
118118
test-groups = ["test"]
119+
# xad 2.1 is released together with this package: until then, test against xad-py main
120+
before-test = "pip install \"xad @ git+https://github.com/auto-differentiation/xad-py.git@7961b377f2cbbfec994193f55c23d7be34a72b5c\""
119121
# importlib mode tests the installed package; Python/test would clash with the stdlib test package
120122
test-command = "pytest -p no:cacheprovider --import-mode=importlib {project}/Python/test"
121123

0 commit comments

Comments
 (0)