Skip to content

Commit

Permalink
ci: use python virtual environment for python bindings (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Jan 2, 2024
1 parent afd65bf commit ca9c55f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ jobs:
path: iguana_src # keep source code isolated
- name: install python binding runtime dependencies
if: ${{ matrix.binding == 'python' }}
run: python -m pip install -r iguana_src/bind/python/requirements.txt
run: |
python -m venv .venv
source .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
python -m pip install -r iguana_src/bind/python/requirements.txt
- name: get dependency build artifacts
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -223,8 +227,6 @@ jobs:
tool: [ cmake, make, meson ]
steps:
- uses: actions/checkout@v4
- name: setup meson
run: python -m pip install meson ninja
- name: get dependency build artifacts
uses: actions/download-artifact@v3
with:
Expand All @@ -241,6 +243,9 @@ jobs:
run: |
ls *.tar.gz | xargs -I{} tar xzvf {}
rm -v *.tar.gz
- name: setup meson
if: ${{ matrix.tool == 'meson' }}
run: python -m pip install meson ninja
- name: set cmake prefix path
if: ${{ matrix.tool == 'cmake' }}
run: echo CMAKE_PREFIX_PATH=$(pwd)/hipo >> $GITHUB_ENV
Expand Down

0 comments on commit ca9c55f

Please sign in to comment.