Skip to content

Commit

Permalink
Add venv to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
linusseelinger committed May 17, 2024
1 parent cc18428 commit 8e7a100
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/client-python-emcee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ jobs:
-
name: Dependencies
run: |
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip && pip3 install numpy arviz emcee umbridge
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip python3-venv
python3 -m venv venv
. venv/bin/activate
pip3 install numpy arviz emcee umbridge
-
name: Build and run
run: |
. venv/bin/activate
cd clients/python && python3 emcee-client.py http://model:4243
6 changes: 5 additions & 1 deletion .github/workflows/client-python-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ jobs:
-
name: Dependencies
run: |
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip && pip3 install umbridge
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip python3-venv
python3 -m venv venv
. venv/bin/activate
pip3 install umbridge
-
name: Build and run
run: |
. venv/bin/activate
cd clients/python && python3 umbridge-client.py http://model:4242
6 changes: 5 additions & 1 deletion .github/workflows/client-python-pymc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ jobs:
-
name: Dependencies
run: |
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip && pip3 install numpy arviz pymc umbridge
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip python3-venv
python3 -m venv venv
. venv/bin/activate
pip3 install numpy arviz pymc umbridge
-
name: Build and run
run: |
. venv/bin/activate
cd clients/python && python3 pymc-client.py http://model:4243
6 changes: 5 additions & 1 deletion .github/workflows/client-python-qmcpy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ jobs:
-
name: Dependencies
run: |
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y git python3-pip && pip3 install umbridge qmcpy
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y git python3-pip python3-venv
python3 -m venv venv
. venv/bin/activate
pip3 install umbridge qmcpy
-
name: Build and run
run: |
. venv/bin/activate
cd clients/python && python3 qmcpy-client.py http://model:4243
6 changes: 5 additions & 1 deletion .github/workflows/client-python-raw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ jobs:
-
name: Dependencies
run: |
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip && pip3 install umbridge
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip python3-venv
python3 -m venv venv
. venv/bin/activate
pip3 install umbridge
-
name: Build and run
run: |
. venv/bin/activate
cd clients/python && python3 raw-client.py http://model:4242
6 changes: 5 additions & 1 deletion .github/workflows/client-python-tinyDA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ jobs:
-
name: Dependencies
run: |
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip && pip3 install papermill umbridge tinyDA ipykernel
apt update && DEBIAN_FRONTEND="noninteractive" apt install -y python3-pip python3-venv
python3 -m venv venv
. venv/bin/activate
pip3 install papermill umbridge tinyDA ipykernel
-
name: Build and run
run: |
. venv/bin/activate
papermill -k python3 --progress-bar clients/python/tinyDA-client.ipynb - > /dev/null

0 comments on commit 8e7a100

Please sign in to comment.