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 bcaf204
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -20,14 +20,14 @@ jobs:
matrix:
python-version: ["3.12"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
language: [ 'python' ]
language: ["python"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up PDM
uses: pdm-project/setup-pdm@v2
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -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
Expand All @@ -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 bcaf204

Please sign in to comment.