Skip to content

Commit

Permalink
[ci] test only on macos-13
Browse files Browse the repository at this point in the history
  • Loading branch information
digikar99 committed May 8, 2024
1 parent aa6bc1d commit bc5754e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 43 deletions.
39 changes: 2 additions & 37 deletions .github/workflows/CI-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
lisp: [sbcl]
os: [macos-14, macos-13]
os: [macos-13]
runs-on: ${{ matrix.os }}
timeout-minutes: 3

Expand Down Expand Up @@ -42,56 +42,21 @@ jobs:
# We avoid caching the apt and python modules; need to deal with recursive dependencies

- name: Install python modules
run: |
brew install [email protected]
python -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
python3-config --ldflags
find '/usr/lib' -name "libpython*.so"
- name: Download download-dependencies
run: |
git clone https://github.com/digikar99/download-dependencies $HOME/quicklisp/local-projects/download-dependencies
- name: Download Tests
run: |
git clone https://github.com/digikar99/py4cl2-cffi-tests ./tests
pwd
ls -l
- name: Download Test Dependencies
run: >
cl --eval '(ql:quickload "download-dependencies")' \
--eval '(in-package :download-dependencies)' \
--eval '(push #P"./" ql:*local-project-directories*)' \
--eval '(let ((*dependencies-home* (first ql:*local-project-directories*))) (ensure-system "py4cl2-cffi-tests"))'
- name: Test numpy
run: |
source ./py4cl2-cffi/bin/activate
python3 -c 'import numpy; print(numpy.__version__, numpy.__path__[0])'
- name: Compile Tests
run: |
source ./py4cl2-cffi/bin/activate
# cl --eval '(print "hello")' --eval '(uiop:quit 0)'
cl --load "$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: |
source ./py4cl2-cffi/bin/activate
cl --load "$HOME/work/py4cl2-cffi/py4cl2-cffi/ci-test.lisp" || cl --load "$HOME/work/py4cl2-cffi/py4cl2-cffi/ci-test.lisp"
8 changes: 2 additions & 6 deletions ci-pre-test.lisp
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
(in-package :cl-user)
;; (ql-dist:install-dist "http://beta.quicklisp.org/dist/quicklisp/2020-10-16/distinfo.txt"
;; :replace t
;; :prompt nil)
(push :ci *features*)
(push #P"~/" ql:*local-project-directories*)
(print (ql:where-is-system "py4cl2-cffi"))
(force-output)
(defmacro print-and-call (form)
`(progn
(format t "~%Executing ~S~%" ',form)
,form
(format t "~%DONE Executing ~S~%" ',form)))
(ql:quickload "py4cl2-cffi-tests")
(print-and-call (ql:quickload "py4cl2-cffi"))
;; (ql:quickload "py4cl2-cffi-tests")
(uiop:quit 0)

0 comments on commit bc5754e

Please sign in to comment.