-
Notifications
You must be signed in to change notification settings - Fork 184
39 lines (37 loc) · 1.07 KB
/
main.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
name: main
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
macOS:
runs-on: macOS-latest
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
SUBLIME_TEXT_VERSION: "3"
SUBLIME_TEXT_ARCH: x64
PACKAGE: LSP
steps:
- run: echo ::add-path::$HOME/.local/bin
- run: echo ::add-path::$HOME/Library/Python/3.7/bin
- uses: actions/checkout@v1
- run: python3 tests/server.py --version
- run: python3 tests/adjust_unittesting_config_for_ci.py && cat unittesting.json
- run: curl --silent https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/ci.sh --output ci.sh
- run: |
sh ci.sh bootstrap
sh ci.sh install_package_control
subl &
sleep 8
sh ci.sh run_tests --coverage
name: Run UnitTesting tests
- run: pip3 install mypy==0.750 flake8==3.7.9 yapf==0.29.0 --user
- run: mypy -p plugin
- run: flake8 plugin tests
- run: yapf --diff plugin/core/main.py
- run: |
pip3 install coverage==4.5.4 codecov==2.0.15
codecov