-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (50 loc) · 1.43 KB
/
ci.yml
File metadata and controls
64 lines (50 loc) · 1.43 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
name: SentraCore CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
engine-ci:
name: Python Engine CI
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest ruff
- name: Lint with Ruff
run: |
# Stop the build if there are Python syntax errors or undefined names
ruff check engine/ tests/ --select=E9,F63,F7,F82
- name: Run Unit Tests
run: |
python -m pytest tests/ -v
dashboard-ci:
name: Flutter Dashboard CI
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
- name: Enable Windows Desktop support
run: flutter config --enable-windows-desktop
- name: Install dependencies
working-directory: ./dashboard
run: flutter pub get
- name: Analyze Dart Code
working-directory: ./dashboard
run: flutter analyze
- name: Run Flutter Tests
working-directory: ./dashboard
run: flutter test