-
-
Notifications
You must be signed in to change notification settings - Fork 28
115 lines (93 loc) · 3.41 KB
/
ci.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: ci
# Controls when the action will run. Triggers the workflow on push for any branch, and
# pull requests to master
on:
push:
branches: [ master ]
pull_request:
jobs:
test:
name: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-22.04
- windows-latest
# run the job on every combination of "os" above
runs-on: ${{ matrix.os }}
steps:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
- name: Install Windows dependencies
if: matrix.os == 'windows-latest'
run: |
conda install -c conda-forge m2w64-gcc m2w64-zeromq
echo "C:\\Program Files\\Steel Bank Common Lisp\\2.0.0\\" >> $GITHUB_PATH
echo "SBCL_HOME=C:\\Program Files\\Steel Bank Common Lisp\\2.0.0\\" >> $GITHUB_ENV
- name: Install Windows dependencies (pt 2)
if: matrix.os == 'windows-latest'
shell: cmd
run: |
curl -L http://downloads.sourceforge.net/project/sbcl/sbcl/2.0.0/sbcl-2.0.0-x86-64-windows-binary.msi --output sbcl.msi
msiexec /qn /i sbcl.msi
- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y ecl libzmq3-dev sbcl
sudo bash -c "$(curl -fsSL https://www.thirdlaw.tech/pkg/clasp.sh)"
- name: Install MacOS dependencies
if: matrix.os == 'macos-latest'
run: |
brew install clozure-cl czmq sbcl ecl clasp-developers/clasp/clasp-cl
- name: Install Jupyter
run: |
conda install -c conda-forge jupyterlab jupyter_kernel_test
- name: Install pytest-jupyter_kernel
run: |
pip install build
git clone https://github.com/yitzchak/pytest-jupyter_kernel.git
cd pytest-jupyter_kernel
pyproject-build
pip install dist/pytest_jupyter_kernel-0.1.0-py3-none-any.whl
- name: Checkout repository
uses: actions/checkout@v4
- name: Download Quicklisp
run: |
curl -kLO https://beta.quicklisp.org/quicklisp.lisp
# - name: Clone dependencies that have not been updated in Quicklisp
# run: |
# git clone https://github.com/yitzchak/shasht.git ~/quicklisp/local-projects/shasht
# git clone -b fix-utf-8 https://github.com/yitzchak/language-codes.git ~/quicklisp/local-projects/language-codes
# - name: Clone dependencies that have not been updated in Quicklisp (pt 2)
# if: matrix.os == 'windows-latest'
# run: |
# git clone https://github.com/orivej/pzmq.git ~/quicklisp/local-projects/pzmq
- name: Install CCL kernel on MacOS
if: matrix.os == 'macos-latest'
run: |
ccl64 --batch --load scripts/usr-install.lisp
# - name: Install CCL kernel on Ubuntu
# if: matrix.os == 'ubuntu-22.04'
# run: |
# ccl --batch --load scripts/usr-install.lisp
- name: Install CLASP kernel
if: matrix.os != 'windows-latest'
run: |
clasp --non-interactive --load scripts/usr-install.lisp
- name: Install ECL kernel
if: matrix.os != 'windows-latest'
run: |
ecl --load scripts/usr-install.lisp --eval '(ext:quit)'
- name: Install SBCL kernel
run: |
sbcl --non-interactive --load scripts/usr-install.lisp sbcl
- name: Run kernel tests
run: |
pytest --verbose