Skip to content

Commit 9e13782

Browse files
committed
tests: cache and verify hash value of sample images
1 parent 28fbadc commit 9e13782

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/build_wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
# uses: pypa/cibuildwheel@v2.11.2
6161
env:
6262
CONAN_COMPILER_VERSION: ${{ matrix.compiler_version }}
63-
SAMPLE_IMAGES_ARCHIVE: "{{ github.workspace }}/sampledata/sample_images.tar.gz"
63+
SAMPLE_IMAGES_ARCHIVE: "${{ github.workspace }}/sampledata/sample_images.tar.gz"
6464

6565
# CIBW_SOME_OPTION: value
6666
- uses: actions/upload-artifact@v4

.github/workflows/tox_matrix.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
id: cache
6464
with:
6565
path: "${{ matrix.conan_user_home }}/.conan2"
66-
key: ${{ runner.os }}-${{ hashFiles('**/conanfile.py') }}
66+
key: ${{ runner.os }}-${{ hashFiles('**/conanfile.py', 'conan.lock') }}
6767

6868
- name: Build conan packages on Non-Windows Operating Systems
6969
if: ${{ !contains(matrix.os, 'windows') && steps.cache.outputs.cache-hit != 'true' }}
@@ -88,10 +88,11 @@ jobs:
8888
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 && uv run --only-group tox --with tox-uv tox -e ${{ steps.tox-env.outputs.result }}
8989
env:
9090
CONAN_USER_HOME: ${{ matrix.conan_user_home }}
91+
SAMPLE_IMAGES_ARCHIVE: "${{ github.workspace }}/sampledata/sample_images.tar.gz"
9192
- name: Run tox
9293
if: "!contains(matrix.os, 'windows')"
9394
run: cc --version && cc -dumpfullversion -dumpversion && uv run --only-group tox --with tox-uv tox -e ${{ steps.tox-env.outputs.result }} -vvv
9495
env:
9596
CONAN_COMPILER_LIBCXX: ${{ matrix.compiler_libcxx }}
9697
CONAN_USER_HOME: ${{ matrix.conan_user_home }}
97-
SAMPLE_IMAGES_ARCHIVE: "{{ github.workspace }}/sampledata/sample_images.tar.gz"
98+
SAMPLE_IMAGES_ARCHIVE: "${{ github.workspace }}/sampledata/sample_images.tar.gz"

0 commit comments

Comments
 (0)