-
Notifications
You must be signed in to change notification settings - Fork 200
60 lines (51 loc) · 1.45 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
name: test
on:
push:
pull_request:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
emacs_version:
- 26.3
- 27.2
- 28.2
# - snapshot
steps:
- uses: actions/checkout@v2
- name: Install emacs
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
architecture: "x64"
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rust-analyzer
- name: Install other depedencies
run: |
pip3 install python-lsp-server autopep8 rope pycodestyle pyflakes pydocstyle mccabe pylint
sudo apt-get install clangd
ln -sf `rustup which --toolchain stable rust-analyzer` ~/.cargo/bin/rust-analyzer
- name: Build eglot
run: make compile
- name: Test eglot
run: |
make eglot-check
- name: Setup debugging tmate session maybe
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}