Skip to content

Update documentation.yml #21

Update documentation.yml

Update documentation.yml #21

Workflow file for this run

############################################################
# -*- coding: utf-8 -*-
#
# o-o o--o o o o-o
# | \ | | | | |
# | O O--o | | o-o
# | / | | | | |
# o-o o--o o-o o--o
#
#
# o-o o--o o o
# | | | | |
# | O--o | |
# | | | |
# o--o o o-o
#
# python-based service for victron cerbo > v3.00
#
# (c) 2024 by mworion
# Licence MIT
#
###########################################################
name: CodeChecks
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
on:
push:
branches:
- '**'
paths:
- dbus-cpu/**
- tox.ini
- .github/workflows/**
jobs:
analyse:
name: Analyze Using GitHub CodeQL
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
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: Install dependencies
run: |
pip install pip --upgrade
pip install -r requirements.txt
flake8 dbus-cpu
pytest
- name: Run checks
run: |
flake8
pytest