Skip to content

Commit

Permalink
pyenv test
Browse files Browse the repository at this point in the history
Signed-off-by: Govind Kamat <govkamat@amazon.com>
  • Loading branch information
gkamat committed Aug 26, 2024
1 parent 3670388 commit 9b235d4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pyenv-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pyenv Test
on: [workflow_dispatch, pull_request]
jobs:
Pyenv-Test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4

- name: Check out repository code
uses: actions/checkout@v2

- name: Clone pyenv
run: git clone https://github.com/pyenv/pyenv.git ~/.pyenv

- name: Run the pytest script
run: bash pytest
env:
BENCHMARK_HOME: env.GITHUB_WORKSPACE
25 changes: 25 additions & 0 deletions pytest
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

pyenv_init() {
PATH=$HOME/.pyenv/shims:$PATH:$HOME/.pyenv/bin
}

set -x

PATH=$HOME/.pyenv/shims:$PATH:$HOME/.pyenv/bin

pyenv install --skip-existing 3.9.10
pyenv local 3.9.10

pip3 install tox
ls -l $HOME/.pyenv/shims

echo ================================================================================

make xinst
docker pull ubuntu/squid:latest

PATH=$HOME/.pyenv/versions/3.9.10/bin:$PATH
echo $PATH
opensearch-benchmark --version
ls -l $HOME/.pyenv/shims

0 comments on commit 9b235d4

Please sign in to comment.