Skip to content

Enhance response handling in Planhat bulk upsert logic to skip non-di… #73

Enhance response handling in Planhat bulk upsert logic to skip non-di…

Enhance response handling in Planhat bulk upsert logic to skip non-di… #73

Workflow file for this run

name: Development
on:
push:
branches: [ main ]
paths:
- '**.py'
- '!docs/**'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Disabling shallow clone for SonarCloud
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: make develop
- name: Code Linting
run: make lint
- name: Code Testing
run: make test-report
- name: SonarQube Scan
if: matrix.python-version == '3.9'
uses: SonarSource/sonarqube-scan-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=johnbrandborg
-Dsonar.projectKey=johnbrandborg_cruds
-Dsonar.python.coverage.reportPaths=coverage.xml
-Dsonar.python.version=${{ matrix.python-version }}
-Dsonar.sources=src/
-Dsonar.test.exclusions=tests/**
-Dsonar.tests=tests/