forked from opensearch-project/opensearch-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Govind Kamat <govkamat@amazon.com>
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |