### Description Allow fine grained configuration on which release the test should be run. This will be useful to start testing liquidsoap >=2.0.0 in our ci.
35 lines
852 B
YAML
35 lines
852 B
YAML
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 }}
|