-
Notifications
You must be signed in to change notification settings - Fork 290
100 lines (98 loc) · 3.35 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Test
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-py:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
py: ["3.11", "3.8"]
toxenv: ["py", "old_deps"]
exclude:
- os: "macos-latest"
toxenv: "old_deps"
- os: "windows-latest"
toxenv: "old_deps"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
cache: "pip"
cache-dependency-path: "constraints*.txt"
- run: python -m pip install -c constraints.txt tox
- run: tox -e ${{ matrix.toxenv }}
test-js:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- run: cd frontend && npm ci
- run: cd frontend && npm run build
- run: cd frontend && npm test
lint-js:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: "constraints*.txt"
- uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "npm"
cache-dependency-path: frontend/package-lock.json
- run: python -m pip install -c constraints.txt pre-commit
- run: cd frontend && npm ci
- run: pre-commit run -a eslint
- run: cd frontend; npx tsc
- run: cd frontend; npx svelte-check
lint-python:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: "constraints*.txt"
- run: python -m pip install -c constraints.txt tox
- run: tox -e lint
build-docs:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: "constraints*.txt"
- run: python -m pip install -c constraints.txt tox
- run: tox -e docs
build-pyinstaller:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: "constraints*.txt"
- run: python -m pip install -c constraints.txt tox
- run: tox -e pyinstaller