nfstream/.github/workflows/codeql-analysis.yml
2022-04-04 17:31:56 +02:00

43 lines
1.1 KiB
YAML

name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '15 12 * * 6'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ['python']
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Build
run: |
sudo apt-get update
sudo apt-get install autoconf automake libtool pkg-config gettext libjson-c-dev
sudo apt-get install libusb-1.0-0-dev libdbus-glib-1-dev libbluetooth-dev libnl-genl-3-dev flex bison
python3 -m pip install --upgrade pip
python3 -m pip install -r dev_requirements.txt
python3 prepare.py
python3 -m pip install .
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1