From b87a0f3bbe4587e5076c9883f1671b5fe3828448 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Mon, 9 Sep 2024 22:39:56 +0200 Subject: [PATCH] ci: correct ONNX DNN tests on Linux/macOS Signed-off-by: deadprogram --- .github/workflows/linux.yml | 4 ++-- .github/workflows/macos.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 87f4d46f..20bcbb25 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -33,13 +33,13 @@ jobs: - name: Install ONNX test model run: | mkdir -p ${GITHUB_WORKSPACE}/testdata - curl -sL https://github.com/onnx/models/blob/master/vision/classification/inception_and_googlenet/googlenet/model/googlenet-9.onnx\?raw\=true > ${GITHUB_WORKSPACE}/testdata/googlenet-9.onnx + curl -sL https://github.com/onnx/models/raw/main/validated/vision/classification/inception_and_googlenet/googlenet/model/googlenet-9.onnx > ${GITHUB_WORKSPACE}/testdata/googlenet-9.onnx - name: Run main tests run: xvfb-run -a --error-file /var/log/xvfb_error.log --server-args="-screen 0 1024x768x24 +extension RANDR" go test -v -coverprofile=/tmp/coverage.out -count=1 -tags matprofile . env: DISPLAY: 99.0 GOCV_TENSORFLOW_TEST_FILES: ${{ github.workspace }}/testdata - NO_GOCV_ONNX_TEST_FILES: ${{ github.workspace }}/testdata + GOCV_ONNX_TEST_FILES: ${{ github.workspace }}/testdata - name: Run contrib tests run: xvfb-run -a --error-file /var/log/xvfb_error.log --server-args="-screen 0 1024x768x24 +extension RANDR" go test -v -coverprofile=/tmp/contrib.out -count=1 -tags matprofile ./contrib env: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 992fce9f..64743897 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -42,11 +42,11 @@ jobs: - name: Install ONNX test model run: | mkdir -p ${GITHUB_WORKSPACE}/testdata - curl -sL https://github.com/onnx/models/blob/master/vision/classification/inception_and_googlenet/googlenet/model/googlenet-9.onnx\?raw\=true > ${GITHUB_WORKSPACE}/testdata/googlenet-9.onnx + curl -sL https://github.com/onnx/models/raw/main/validated/vision/classification/inception_and_googlenet/googlenet/model/googlenet-9.onnx > ${GITHUB_WORKSPACE}/testdata/googlenet-9.onnx - name: Run main tests run: go test -v -tags matprofile . env: GOCV_TENSORFLOW_TEST_FILES: ${{ github.workspace }}/testdata - NO_GOCV_ONNX_TEST_FILES: ${{ github.workspace }}/testdata + GOCV_ONNX_TEST_FILES: ${{ github.workspace }}/testdata - name: Run contrib tests run: go test -v -tags matprofile ./contrib