Skip to content

Commit 4482514

Browse files
committed
Add ci to build the deb
1 parent 4585748 commit 4482514

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
build-deb:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python-version: ['3.13']
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Setup python ${{ matrix.python-version}}
12+
uses: actions/setup-python@v3
13+
with:
14+
python-version: ${{ matrix.python-version }}
15+
- name: Build deb
16+
run: python build.py
17+
- name: Upload deb
18+
uses: actions/upload-artifact@v4
19+
with:
20+
name: solarpi
21+
path: dist/
22+
check-code:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
python-version: ['3.13']
27+
steps:
28+
- uses: actions/checkout@v3
29+
- name: Setup python ${{ matrix.python-version}}
30+
uses: actions/setup-python@v3
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Install dependencies
34+
run: pip install -U mypy black isort flake8
35+
- name: Run checks
36+
run: |
37+
isort solarpi --check --diff
38+
black solarpi --check --diff
39+
mypy solarpi--ignore-missing-imports
40+
flake8 --ignore=E501,W503 solarpi
41+
42+

0 commit comments

Comments
 (0)