on: workflow_call: inputs: context: required: true type: string concurrency: group: ${{ github.workflow }}-${{ github.ref }}-lint cancel-in-progress: true jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" - uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ inputs.context }}-${{ hashFiles(format('{0}/{1}', inputs.context, '**/setup.py')) }} restore-keys: | ${{ runner.os }}-pip-${{ inputs.context }} - name: Add annotations matchers run: | echo "::add-matcher::.github/annotations/pylint.json" - name: Lint run: make lint working-directory: ${{ inputs.context }}