-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.31 KB
/
build-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build Main
on:
push:
branches:
- main
schedule:
# <minute [0,59]> <hour [0,23]> <day of the month [1,31]> <month of the year [1,12]> <day of the week [0,6]>
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
# Run every Monday at 23:26:00 UTC (Monday at 15:26:00 PST)
# We offset from the hour and half hour to go easy on the servers :)
- cron: '26 23 * * 1'
jobs:
build-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: '3.11'
- name: Install Packages
run: |
sudo apt update
sudo apt-get install ffmpeg --fix-missing
- name: Install Python Dependencies
run: |
cd python/
pip install .[test]
- name: Lint and Format Python
run: |
cd python/
flake8 cdp_milwaukee_backend --count --verbose --show-source --statistics
black --check cdp_milwaukee_backend
build-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install Web App Dependencies
run: |
cd web/
npm i
- name: Build Web App
run: |
cd web/
npm run build