Skip to content

Commit

Permalink
ci(workflow): paths ignore for CodeQl
Browse files Browse the repository at this point in the history
  • Loading branch information
psadi committed Apr 16, 2024
1 parent fe55ab0 commit 7a40685
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -3,10 +3,10 @@ name: Continuous Integration
on:
workflow_dispatch: {}
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
types: [opened, synchronize, reopened]
branches: [ "main" ]
types: [opened, synchronize, reopened]
branches: ["main"]

jobs:
build:
@@ -20,7 +20,7 @@ jobs:
matrix:
python-version: ["3.12"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
language: [ 'python' ]
language: ["python"]
steps:
- uses: actions/checkout@v3
with:
@@ -46,7 +46,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args:
args: |
-Dsonar.projectKey=psadi_bbcli
-Dsonar.organization=psadi
-Dsonar.python.version=3
@@ -56,14 +56,27 @@ jobs:
-Dsonar.exclusions=tests
- name: Initialize CodeQL
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
paths-ignore: |
__pypackages__
__pycache__
.tox
.pdm-build
.ruff_cache
build
dist
.vscode
.github

0 comments on commit 7a40685

Please sign in to comment.