Skip to content

chore(deps): update github/codeql-action action to v4.35.1 - autoclosed #1640

chore(deps): update github/codeql-action action to v4.35.1 - autoclosed

chore(deps): update github/codeql-action action to v4.35.1 - autoclosed #1640

---
name: generate_and_upload_coverage_data
'on':
workflow_dispatch:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
generate_and_upload_coverage_data:
name: generate_and_upload_coverage_data
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Validate codecov.yml file
run: |
./validate_codecov_yml.sh
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3.14
- name: Set up Poetry
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
- name: Install dependencies
run: |
poetry install --with dev
- name: Install language dependencies
working-directory: ${{github.workspace}}/system_setup_scripts
run: |
sudo apt-get update
sudo ./install_all.sh
./install_all_no_sudo.sh
- name: Generate coverage data
run: |
./generate_coverage_data.sh \
--composition_chain_size=0 \
--iteration_size=0
- name: Sonar Scan
uses: SonarSource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9 # v7.0.0
env:
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
- name: Upload coverage report to Codecov (tokenless)
if: >-
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
with:
fail_ci_if_error: true
- name: Upload coverage report to Codacy
uses: codacy/codacy-coverage-reporter-action@89d6c85cfafaec52c72b6c5e8b2878d33104c699 # v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
- name: Upload coverage report as an artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: coverage_report
path: |
coverage.xml
htmlcov
if-no-files-found: error
retention-days: 5
...