Skip to content

Commit

Permalink
Use pyenv
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayP13 committed Dec 25, 2023
1 parent 2ea2a63 commit 23c8112
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
- name: PYTHON version
run: python3 --version
- name: sudo PYTHON version
run: sudo -H -E env "PATH=$pythonLocation/bin:$PATH" python3 --version
- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
limit-access-to-users: AjayP13
run: |+
curl https://pyenv.run | bash;
export PATH="$HOME/.pyenv/bin:$PATH";
echo "PATH=$PATH" >> $GITHUB_ENV;
- name: Cache PROJECT_DATA
id: cache-project-data
uses: actions/cache@v3
Expand All @@ -62,7 +57,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=$pythonLocation:$PATH" ./run.sh -k "test_python_version" -vvvv --durations=0 --junitxml=./test.xml
run: sudo -H -E env "PATH=$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 23c8112

Please sign in to comment.