-
Notifications
You must be signed in to change notification settings - Fork 10
75 lines (60 loc) · 2.13 KB
/
CI-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.lisp }}, ${{ matrix.os }}
strategy:
matrix:
lisp: [sbcl]
os: [macos-13]
runs-on: ${{ matrix.os }}
timeout-minutes: 3
continue-on-error: true
steps:
- uses: actions/checkout@v2
- name: Update $PATH
run: |
echo $PATH
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
- name: Check $PATH
run: echo $PATH
- name: Download implementation
env:
LISP: ${{ matrix.lisp }}
OS: ${{ matrix.os }}
run: |
pwd
ls -l
bash <(curl -s https://raw.githubusercontent.com/digikar99/lisp-travis-lite/master/run.sh)
- name: Test without numpy
run: |
ls
cl --eval '(push #P"./" ql:*local-project-directories*)' --eval '(ql:quickload "py4cl2-cffi")' --eval '(assert (= 5 (py4cl2-cffi:pyeval 5)))' --eval '(print py4cl2-cffi:*internal-features*)'
# 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: Compile Tests
run: |
source ./py4cl2-cffi/bin/activate
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.
- 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"