Skip to content

adding codechecker analysis workflow #1

adding codechecker analysis workflow

adding codechecker analysis workflow #1

name: codechecker-pr-analysis
# Triggers the workflow on push or pull request events.
on: [push]

Check failure on line 4 in .github/workflows/codechecker_master_analysis.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/codechecker_master_analysis.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
branches:
- master
jobs:
codechecker-analyis:
name: CodeChecker analyze master (pylint, pycodestyle)
runs-on: ubuntu-20.04
env:
PR_NUMBER: ${{ github.event.number }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install dependencies
run: |
pip install $(grep -iE "pylint|pycodestyle" analyzer/requirements_py/dev/requirements.txt)
pip install codechecker
- name: Run CodeChecker analysis
env:
CODECHECKER_TOKEN: ${{secrets.CODECHECKER_STORE_TOKEN}}
PR_NUMBER: ${{ github.event.number }}
run: |
pwd
ls
touch ~/.codechecker.passwords.json
chmod 0600 ~/.codechecker.passwords.json
echo "{\"client_autologin\" : true,\"credentials\": {\"https://codechecker-demo.eastus.cloudapp.azure.com\": \"store:$CODECHECKER_TOKEN\"}}" > ~/.codechecker.passwords.json
bash ./scripts/github-analysis/codechecker_gate_master.sh