Skip to content

Commit

Permalink
[ci] setup venv on linux too
Browse files Browse the repository at this point in the history
  • Loading branch information
digikar99 committed Apr 30, 2024
1 parent 4671221 commit ada392f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/CI-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@ jobs:
- name: Install python modules
run: | # need to use sudo
sudo apt install python3-pip
python3 -m ensurepip --upgrade
python3 -m venv ./py4cl2-cffi/
source ./py4cl2-cffi/bin/activate
pip3 install numpy
pip3 install networkx
pip3 install matplotlib
- name: Run python-config
run: |
source ./py4cl2-cffi/bin/activate
python3 --version
python3-config --libs
python3-config --includes
Expand All @@ -59,6 +63,7 @@ jobs:
- name: Download download-dependencies
run: |
source ./py4cl2-cffi/bin/activate
git clone https://github.com/digikar99/download-dependencies $HOME/quicklisp/local-projects/download-dependencies
Expand Down Expand Up @@ -95,9 +100,13 @@ jobs:
/"$EXOTIC_DIR_PYTHON" --version
- name: Compile Tests
run: cl --load "$EXOTIC_DIR/$HOME/work/py4cl2-cffi/py4cl2-cffi/ci-pre-test.lisp"
run: |
source ./py4cl2-cffi/bin/activate
cl --load "$EXOTIC_DIR/$HOME/work/py4cl2-cffi/py4cl2-cffi/ci-pre-test.lisp"
# Testing it on the second load confirms that functionalities do not
# solely eval-when compile-toplevel, and that they persist across multiple loads.
- name: Run Tests
run: cl --load "$EXOTIC_DIR/$HOME/work/py4cl2-cffi/py4cl2-cffi/ci-test.lisp" || cl --load "$EXOTIC_DIR/$HOME/work/py4cl2-cffi/py4cl2-cffi/ci-test.lisp"
run: |
source ./py4cl2-cffi/bin/activate
cl --load "$EXOTIC_DIR/$HOME/work/py4cl2-cffi/py4cl2-cffi/ci-test.lisp" || cl --load "$EXOTIC_DIR/$HOME/work/py4cl2-cffi/py4cl2-cffi/ci-test.lisp"
2 changes: 1 addition & 1 deletion .github/workflows/CI-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Install python modules
run: | # need to use sudo
brew install [email protected]
python -m ensurepip --upgrade
python3 -m ensurepip --upgrade
python3 -m venv ./py4cl2-cffi/
source ./py4cl2-cffi/bin/activate
brew install numpy
Expand Down

0 comments on commit ada392f

Please sign in to comment.