Skip to content

odin-266: ruff upgrade and public repo changes #8

odin-266: ruff upgrade and public repo changes

odin-266: ruff upgrade and public repo changes #8

Workflow file for this run

name: pull-request
on:
workflow_dispatch:
pull_request:
branches:
- develop
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout the calling repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: build-common
uses: ./.github/actions/build-common
- name: lint
shell: bash
run: |
make lint-ci
test:
runs-on: ubuntu-latest
steps:
- name: checkout the calling repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: build-common
uses: ./.github/actions/build-common
- name: run tests
shell: bash
run: |
make coverage-ci
- name: coverage comment
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && hashFiles('./reports/coverage.xml') && hashFiles('./reports/pytest-coverage.txt') }}
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./reports/pytest-coverage.txt
pytest-xml-coverage-path: ./reports/coverage.xml
junitxml-path: ./reports/junit/*.xml
- name: convert sonar reports
if: ${{ hashFiles('./reports/junit/*.xml') || hashFiles('./reports/coverage.xml') }}
uses: ./.github/actions/sonar-reports
- name: prepare sonar properties
if: ${{ hashFiles('./sonar-project.properties') }}
uses: ./.github/actions/sonar-properties
- name: sonarqube scan
uses: SonarSource/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
# Consult https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/scanners/sonarscanner/ for more information and options
args: "${{ inputs.sonar-args }}"
- name: publish test report
uses: mikepenz/action-junit-report@v5
if: ${{ !cancelled() && (inputs.require-tests != 'false' || hashFiles('./reports/junit/*.xml')) }}
with:
report_paths: 'reports/junit/*.xml'
require_tests: true
fail_on_failure: true