Merge pull request #4724 from bruntib/minor_fix #76
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: codechecker-master-analysis | |
| # Triggers the workflow on push or pull request events. | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| codechecker-master-analyis: | |
| name: CodeChecker analyze master | |
| runs-on: ubuntu-24.04 | |
| env: | |
| PR_NUMBER: ${{ github.event.number }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.9' | |
| - name: Install dependencies | |
| run: | | |
| pip install $(grep -iE "pylint|pycodestyle" analyzer/requirements_py/dev/requirements.txt) | |
| pip install codechecker==6.25.1 | |
| sh .github/workflows/install-deps.sh | |
| - name: Build the CodeChecker package | |
| run: | | |
| make pip_dev_deps | |
| BUILD_UI_DIST=NO make package | |
| - name: Run CodeChecker analysis | |
| env: | |
| CODECHECKER_TOKEN: ${{ secrets.CODECHECKER_STORE_TOKEN }} | |
| PR_NUMBER: ${{ github.event.number }} | |
| run: | | |
| echo "{\"client_autologin\" : true,\"credentials\": {\"*\": \"store:$CODECHECKER_TOKEN\"}}" > ~/.codechecker.passwords.json | |
| bash ./ci/github_analysis/codechecker_gate_master.sh |