-
Notifications
You must be signed in to change notification settings - Fork 25
79 lines (76 loc) · 1.86 KB
/
Copy pathblank.yml
File metadata and controls
79 lines (76 loc) · 1.86 KB
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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build-and-test:
defaults:
run:
working-directory: client
strategy:
matrix:
target: ['web', 'electron']
name: Client Tests
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
-
uses: actions/setup-node@v6
with:
node-version: '24.15.0'
cache: npm
cache-dependency-path: client/package-lock.json
-
name: npm install
run: npm ci
-
name: Lint
if: ${{ matrix.target == 'web' }}
run: npm run lint
-
name: Lint templates
if: ${{ matrix.target == 'web' }}
run: npm run lint:templates
-
name: Run tests
if: ${{ matrix.target == 'web' }}
run: npm test -- --coverage
-
name: Build Web
if: ${{ matrix.target == 'web' }}
run: npm run build:web
env:
SENTRY_AUTH_TOKEN: ${{ github.ref == 'refs/heads/main' && secrets.SENTRY_AUTH_TOKEN || '' }}
-
name: Build electron
if: ${{ matrix.target == 'electron' }}
run: npm run build:electron -- --linux AppImage
test-server:
name: Server Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- name: Update Package References
run: sudo apt-get update
- name: Install system dependencies
run: sudo apt-get install --no-install-recommends --yes
python3-cachecontrol
python3-dev
python3-gdal
libgdal-dev
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Run tests
run: tox -e testunit
working-directory: server