release(datashare-python): 0.2.22
#222
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: Linting test | |
| on: | |
| push: | |
| branches: [ 'main' ] | |
| pull_request: | |
| # TODO: start workflow selectively, rather than running full linting as soon as a file change in one of the monorepos | |
| paths: | |
| - 'datashare-python/**.py' | |
| - 'worker-template/**.py' | |
| - 'asr-worker/**.py' | |
| - '.github/workflows/linting.yml' | |
| # TODO: leverage some caching here | |
| jobs: | |
| datashare-python: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "--version" # skips test by displaying the version | |
| - name: Check formatting | |
| run: ruff format --config qa/ruff.toml --check datashare-python | |
| - name: Lint test | |
| run: ruff check --config qa/ruff.toml datashare-python | |
| worker-template: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "--version" # skips test by displaying the version | |
| - name: Check formatting | |
| run: ruff format --config qa/ruff.toml --check worker-template | |
| - name: Lint test | |
| run: ruff check --config qa/ruff.toml worker-template | |
| doc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "--version" # skips test by displaying the version | |
| - name: Check formatting | |
| run: ruff format --config qa/ruff.toml --check docs | |
| - name: Lint test | |
| run: ruff check --config qa/ruff.toml docs | |
| asr-worker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/pylint | |
| name: "Lint ASR worker" | |
| with: | |
| path: asr-worker | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true |