Skip to content

Commit a36f092

Browse files
committed
add more-docker-test
1 parent 0c0aa2a commit a36f092

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

.github/workflows/test-opencvsharp.yml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
test:
11-
name: Test OpenCvSharp
11+
name: Fast Test
1212
runs-on: ${{ matrix.runs-on }}
1313
defaults:
1414
run:
@@ -229,7 +229,7 @@ jobs:
229229
path: test
230230

231231
android-x64-test:
232-
name: Test for Android x64
232+
name: Android x64 Test
233233
runs-on: ubuntu-24.04
234234
needs: test
235235

@@ -254,4 +254,31 @@ jobs:
254254
target: google_apis
255255
script: |
256256
adb push -a test /data/local/tmp/
257-
adb shell 'cd /data/local/tmp/test && ./test.exe'
257+
adb shell 'cd /data/local/tmp/test && ./test.exe'
258+
259+
more-docker-test:
260+
name: More Docker Test
261+
runs-on: ${{ matrix.runs-on }}
262+
defaults:
263+
run:
264+
shell: bash
265+
needs: test
266+
strategy:
267+
matrix:
268+
include:
269+
- { os: centos.7, arch: x64, runs-on: ubuntu-22.04, image: centos:7 }
270+
- { os: centos.7, arch: arm64, runs-on: ubuntu-22.04-arm, image: centos:7 }
271+
steps:
272+
- name: Download Artifacts
273+
uses: actions/download-artifact@v4
274+
with:
275+
name: test-${{ matrix.os }}-${{ matrix.arch }}
276+
path: test
277+
278+
- name: Start Docker Container
279+
run: |
280+
docker run -d --name builder -v "$PWD":${{ github.workspace }} -w ${{ github.workspace }} ${{ matrix.image }} tail -f /dev/null
281+
282+
- name: Run Tests
283+
run: |
284+
docker exec builder bash -c "cd test && ./test.exe"

0 commit comments

Comments
 (0)