-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (31 loc) · 1012 Bytes
/
python.yml
File metadata and controls
31 lines (31 loc) · 1012 Bytes
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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install Python dependencies
run: |
pip install -r requirements.txt
pip install -e '.[dev]'
- name: Lint with flake8
run: flake8 reticulum_openapi examples tests
- name: Run pytest suite
run: pytest
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: examples/EmergencyManagement/webui/package-lock.json
- name: Install web UI dependencies
working-directory: examples/EmergencyManagement/webui
run: npm ci
- name: Run Emergency webUI tests
working-directory: examples/EmergencyManagement/webui
run: npm run test -- --run --reporter=dot