Skip to content

release(datashare-python): 0.2.22 #222

release(datashare-python): 0.2.22

release(datashare-python): 0.2.22 #222

Workflow file for this run

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