Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/reusable-python-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 10
env:
CMAKE_C_COMPILER_LAUNCHER: sccache
CMAKE_CXX_COMPILER_LAUNCHER: sccache
SCCACHE_GHA_ENABLED: true
SCCACHE_IDLE_TIMEOUT: 0
SCCACHE_GHA_RW_MODE: ${{ github.ref == 'refs/heads/main' && 'READ_WRITE' || 'READ_ONLY' }}
IQM_TOKEN: ${{ secrets.IQM_TOKEN }}
IQM_QC_ALIAS: ${{ secrets.IQM_QC_ALIAS }}
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
Expand Down Expand Up @@ -81,6 +86,10 @@ jobs:
with:
save-cache: ${{ github.ref == 'refs/heads/main' }}

- name: Set up sccache
if: ${{ inputs.check-stubs }}
uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11

- name: Check if stub files are up to date
if: ${{ inputs.check-stubs }}
run: |
Expand All @@ -104,3 +113,9 @@ jobs:
# run check-sdist to ensure the package sdist is correct
- name: Run check-sdist
run: uvx check-sdist --inject-junk

- name: Verify sccache use
if: ${{ inputs.check-stubs }}
run: |
sccache --show-stats --stats-format json |
python -c 'import json, sys; assert json.load(sys.stdin)["stats"]["compile_requests"] > 0'