-
Notifications
You must be signed in to change notification settings - Fork 51
76 lines (74 loc) · 1.98 KB
/
test.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
name: CI
on:
- push
jobs:
test-on-windows:
runs-on: windows-latest
env:
CACHE_NUM: 0
steps:
# TODO: figure this out, add caching to all steps
# - uses: actions/cache@v1
# with:
# path: C:\Temp\Choco
# key: ${{ env.CACHE_NUM }}
# - uses: crazy-max/ghaction-chocolatey@v1
# with:
# args: config set cacheLocation C:\Temp\Choco
- uses: crazy-max/ghaction-chocolatey@v1
with:
args: install emacs
- uses: goanpeca/setup-miniconda@v1
with:
miniconda-version: latest
- name: create conda environment foo
run: conda create -y -n foo python=3.6
- uses: actions/checkout@v1
- name: install dependencies & run tests
run: >-
emacs -Q --batch -L .
--load "ci/deps.el"
--load "conda.el"
--load "test/conda-test.el"
-f ert-run-tests-batch-and-exit
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
emacs_version:
- 25.3
- 26.3
- 27.1
- 28.1
- snapshot
miniconda_version:
# - 4.4.10
# - 4.5.12
- 4.6.14
- 4.7.12
- 4.8.4
- 4.12.0
- 4.13.0
- latest
# TODO: specify conda envs in an env var or something
# env:
steps:
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- uses: goanpeca/setup-miniconda@v1
with:
miniconda-version: ${{ matrix.miniconda_version }}
- name: create conda environment foo
run: conda create -y -n foo python=3.6
- uses: actions/checkout@v1
- name: install dependencies & run tests
run: >-
emacs -Q --batch -L .
--load "ci/deps.el"
--load "conda.el"
--load "test/conda-test.el"
-f ert-run-tests-batch-and-exit