Skip to content

Commit

Permalink
Use tmpdir
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Sep 20, 2024
1 parent 1667672 commit 7e81eb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
uses: pypa/cibuildwheel@v2.19.2
env:
CIBW_ARCHS_LINUX: aarch64
CIBW_TEST_COMMAND: QISKIT_PARALLEL=FALSE stestr --top-dir {project} --test-path {project}/test/python run --abbreviate -n test.python.compiler.test_transpiler
CIBW_TEST_COMMAND: QISKIT_PARALLEL=FALSE stestr --top-dir /tmp/test_qiskit --test-path /tmp/test_qiskit/test/python run --abbreviate -n test.python.compiler.test_transpiler
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-aarch64
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ manylinux-x86_64-image = "manylinux2014"
manylinux-i686-image = "manylinux2014"
skip = "pp* cp36-* cp37-* cp38-* *musllinux* *win32 *i686 cp38-macosx_arm64"
test-skip = "*win32 *linux_i686"
test-command = "QISKIT_PARALLEL=FALSE stestr --top-dir {project} --test-path {project}/test/python run --abbreviate"
test-command = "QISKIT_PARALLEL=FALSE stestr --top-dir /tmp/test_qiskit --test-path /tmp/test_qiskit/test/python run --abbreviate"
before-all = "mkdir /tmp/test_qiskit/test cp -r {project}/test/python /tmp/test_qiskit/test/."
# We need to use pre-built versions of Numpy and Scipy in the tests; they have a
# tendency to crash if they're installed from source by `pip install`, and since
# Numpy 1.22 there are no i686 wheels, so we force pip to use older ones without
Expand All @@ -159,7 +160,7 @@ before-test = "pip install --prefer-binary --only-binary=numpy,scipy numpy scipy
environment = 'RUSTUP_TOOLCHAIN="stable"'

[tool.cibuildwheel.linux]
before-all = "yum install -y wget && {package}/tools/install_rust.sh"
before-all = "yum install -y wget && {package}/tools/install_rust.sh && cp -r {project}/test/python /tmp/test_qiskit"
environment = 'PATH="$PATH:$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI="true" RUSTUP_TOOLCHAIN="stable"'
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel} && pipx run abi3audit --strict --report {wheel}"

Expand Down

0 comments on commit 7e81eb6

Please sign in to comment.