Skip to content

Commit

Permalink
Forward LD_LIBRARY_PATH to sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayP13 committed Dec 26, 2023
1 parent a487a3b commit e099aa9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Delete system python
run: |+
sudo apt remove python3 python3-dev python3-pip python3-setuptools python3-virtualenv -y;
sudo apt autoremove -y;
sudo rm -rf /usr/lib/python*;
sudo rm -rf /usr/bin/python*;
sudo rm -rf /usr/lib/x86_64-linux-gnu/libpython*;
- name: Setup Python
uses: actions/setup-python@v5
- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
limit-access-to-users: AjayP13
- name: Cache PROJECT_DATA
id: cache-project-data
uses: actions/cache@v3
Expand All @@ -65,7 +54,7 @@ jobs:
path: .venv/prod
key: test-venv-prod-${{ runner.os }}-${{ hashFiles('src/requirements-dev.txt', 'src/requirements-test.txt', 'src/requirements.txt', 'src/requirements-cpu.txt', 'src/requirements-accelerator-device.txt') }}
- name: Run tests
run: sudo -H -E env "PATH=$PATH" ./run.sh -k "test_python_version" -vvvv --durations=0 --junitxml=./test.xml
run: sudo -H -E env "PATH=$PATH" "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" ./run.sh -k "test_python_version" -vvvv --durations=0 --junitxml=./test.xml
env:
PROJECT_DATA: /tmp/project_data
PROJECT_DISABLE_TUNNEL: 1
Expand Down

0 comments on commit e099aa9

Please sign in to comment.