From a7545781b8a2d4b575aa772794ca628481d2b3b2 Mon Sep 17 00:00:00 2001 From: badrogger Date: Mon, 18 Nov 2024 20:36:11 +0000 Subject: [PATCH] Do not set pythonpath globally --- .github/workflows/test.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a102aed9..a4c95ad4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,6 @@ name: Test on: [push, pull_request] -env: - PYTHONPATH: ${PYTHONPATH}:/usr/lib/python3/dist-packages/ - jobs: test: runs-on: ubuntu-22.04 @@ -62,6 +59,7 @@ jobs: run: | scripts/build.sh test test normal - - name: Run tests - run: bash ./scripts/run_tests.sh + run: | + export PYTHONPATH=${PYTHONPATH}:/usr/lib/python3/dist-packages/ + bash ./scripts/run_tests.sh