Skip to content

Commit 829294d

Browse files
committed
Update test workflow for GitHub action
* .github/workflows/test.yml: Various changes to get the tests working again.
1 parent 6d12ad5 commit 829294d

File tree

1 file changed

+59
-9
lines changed

1 file changed

+59
-9
lines changed

.github/workflows/test.yml

Lines changed: 59 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,69 @@
11
on: push
22
jobs:
3-
test:
3+
test-windows:
44
strategy:
55
matrix:
6-
os: [ubuntu-latest, macos-latest, windows-latest]
7-
emacs-version: [26.3, 27.2, 28.2, snapshot]
6+
emacs-version: [27.2, 28.2, 29.3, snapshot]
7+
runs-on: windows-latest
88
defaults:
99
run:
1010
shell: bash -el {0}
11-
runs-on: ${{ matrix.os }}
1211
continue-on-error: true
1312
steps:
1413
- uses: actions/checkout@v3
15-
- uses: purcell/setup-emacs@master
14+
- uses: jcs090218/setup-emacs-windows@master
1615
with:
1716
version: ${{ matrix.emacs-version }}
18-
if: ${{ matrix.os != 'windows-latest' }}
19-
- uses: jcs090218/setup-emacs-windows@master
17+
- uses: msys2/setup-msys2@v2
18+
with:
19+
msystem: mingw64
20+
path-type: inherit
21+
install: make
22+
- uses: conda-incubator/setup-miniconda@v3
23+
with:
24+
python-version: 3.9
25+
- name: Install requirements
26+
run: |
27+
conda install -c conda-forge pandoc
28+
conda install -c anaconda jupyter
29+
curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/eldev | sh
30+
- name: Add Eldev path
31+
shell: powershell
32+
run: |
33+
"$env:UserProfile\.local\bin" | Out-File $env:GITHUB_PATH
34+
- name: Check Jupyter version
35+
run: |
36+
mkdir -p $(jupyter --runtime-dir)
37+
jupyter --paths
38+
jupyter --version
39+
jupyter kernelspec list
40+
- name: Byte compilation
41+
shell: msys2 {0}
42+
run: |
43+
make
44+
- name: Run tests
45+
shell: msys2 {0}
46+
run: |
47+
make test
48+
test-unix-like:
49+
strategy:
50+
matrix:
51+
os: [ubuntu-latest, macos-latest]
52+
emacs-version: [27.2, 28.2, 29.3, snapshot]
53+
exclude:
54+
- os: macos-latest
55+
emacs-version: 27.2
56+
defaults:
57+
run:
58+
shell: bash -el {0}
59+
runs-on: ${{ matrix.os }}
60+
continue-on-error: true
61+
steps:
62+
- uses: actions/checkout@v3
63+
- uses: purcell/setup-emacs@master
2064
with:
2165
version: ${{ matrix.emacs-version }}
22-
if: ${{ matrix.os == 'windows-latest' }}
23-
- uses: conda-incubator/setup-miniconda@v2
66+
- uses: conda-incubator/setup-miniconda@v3
2467
with:
2568
python-version: 3.9
2669
- name: Install requirements
@@ -37,6 +80,13 @@ jobs:
3780
jupyter --paths
3881
jupyter --version
3982
jupyter kernelspec list
83+
- name: Install packages for compiling Emacs-ZMQ when needed
84+
# FIXME: It may be necessary to compile ZMQ since the runners can have
85+
# a different architecture than what is available in the
86+
# releases of that package. Should consider the architecture in
87+
# the releases of Emacs-ZMQ.
88+
run: brew install automake libtool
89+
if: matrix.os == 'macos-latest'
4090
- name: Byte compilation
4191
run: |
4292
make compile

0 commit comments

Comments
 (0)