From c188b8c3b81611fe8a94a550a696f8207d9a51b4 Mon Sep 17 00:00:00 2001 From: Carlos Date: Tue, 26 Nov 2024 21:48:55 -0800 Subject: [PATCH] env - adding env vars for linux runners. --- .github/workflows/integration_tests.yml | 1 + .github/workflows/tests_native.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index d90e3d6e..843eb241 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -105,6 +105,7 @@ jobs: uses: carlkidcrypto/os-specific-runner@v2.1.1 with: linux: | + export LD_LIBRARY_PATH=$(net-snmp-config --libdir | sed 's/-L//'):$LD_LIBRARY_PATH; cd /home/runner/work/ezsnmp/ezsnmp/integration_tests; ./run_integration_tests.sh | grep "Total execution time:" > total_execution_time_${{matrix.os}}_${{matrix.python-version}}.log; echo "artifactPath1=/home/runner/work/ezsnmp/ezsnmp/integration_tests/total_execution_time_${{matrix.os}}_${{matrix.python-version}}.log" >> $GITHUB_ENV; diff --git a/.github/workflows/tests_native.yml b/.github/workflows/tests_native.yml index 82f08abb..6c2eeff0 100644 --- a/.github/workflows/tests_native.yml +++ b/.github/workflows/tests_native.yml @@ -116,7 +116,7 @@ jobs: ) echo 'PYTHONMALLOC=malloc' >> $GITHUB_OUTPUT fi - ${VALGRIND[@]} python -m pytest ${PYTEST_ARGS[@]} --junitxml=test-results_${{ matrix.os }}_${{ matrix.python-version }}.xml | tee ./test-outputs_${{ matrix.os }}_${{ matrix.python-version }}.txt + LD_LIBRARY_PATH=$(net-snmp-config --libdir | sed 's/-L//'):$LD_LIBRARY_PATH ${VALGRIND[@]} python -m pytest ${PYTEST_ARGS[@]} --junitxml=test-results_${{ matrix.os }}_${{ matrix.python-version }}.xml | tee ./test-outputs_${{ matrix.os }}_${{ matrix.python-version }}.txt - name: Upload Test Results uses: actions/upload-artifact@v4