Skip to content

Update pyproject to fit with the new ruff #664

Update pyproject to fit with the new ruff

Update pyproject to fit with the new ruff #664

name: "Py CodeQL analysis"
on:
push:
branches: [develop, main]
pull_request:
branches: [develop]
paths:
- 'api/**.py'
- 'api/requirements*.*'
- 'docker/dockerfiles/Dockerfile.backend*'
- 'docker-compose.yml'
- '.github/workflows/api_pipeline.yml'
- '.github/workflows/code-analysis-py.yml'
jobs:
analyze_py:
name: Analyze code
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
language: ['python']
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2