forked from Louisvdw/dbus-serialbattery
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 950 Bytes
/
analyse.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
name: "CodeChecks"
on:
push:
branches:
- '**'
# Run on changes in the etc folder
paths:
- etc/**
jobs:
analyse:
name: Analyze Using GitHub CodeQL
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.8.13"
- name: Clone velib_python and add it to PYTHONPATH for subsequent steps
run: |
git clone https://github.com/victronenergy/velib_python.git
echo PYTHONPATH=$PYTHONPATH:$(pwd)/velib_python >> $GITHUB_ENV
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: python
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Execute black lint check
uses: psf/black@stable
- name: flake8 Lint
uses: py-actions/flake8@v2