Skip to content

Commit

Permalink
ci: Use CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed May 23, 2023
1 parent ddb1485 commit d14b856
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ jobs:
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
- name: Configure ccache action
uses: hendrikmuhs/ccache-action@v1.2
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: c, python
- name: Setup directory envs for out-of-tree builds
run: |
echo "CPYTHON_RO_SRCDIR=$(realpath -m ${GITHUB_WORKSPACE}/../cpython-ro-srcdir)" >> $GITHUB_ENV
Expand All @@ -252,6 +256,8 @@ jobs:
- name: Remount sources writable for tests
# some tests write to srcdir, lack of pyc files slows down testing
run: sudo mount $CPYTHON_RO_SRCDIR -oremount,rw
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Tests
working-directory: ${{ env.CPYTHON_BUILDDIR }}
run: xvfb-run make buildbottest TESTOPTS="-j4 -uall,-cpu"
Expand Down

0 comments on commit d14b856

Please sign in to comment.