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 52ce00e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
28 changes: 3 additions & 25 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 @@ -61,33 +61,11 @@ jobs:
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 --load "$HOME/work/py4cl2-cffi/py4cl2-cffi/ci-pre-test.lisp"
cl --eval '(print "hello")' --eval '(uiop:exit 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.
Expand Down
6 changes: 2 additions & 4 deletions ci-pre-test.lisp
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
(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"))
Expand All @@ -11,5 +8,6 @@
(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 52ce00e

Please sign in to comment.