diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..8ee22cd0a --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,39 @@ +name: lint +on: + workflow_dispatch: + push: + branches: master + paths-ignore: + - '**.md' + - '**.rst' + - '**.txt' + - '.github/workflows/smoke.yml' + - '.github/workflows/tests.yml' + pull_request: + branches: master + paths-ignore: + - '**.md' + - '**.rst' + - '**.txt' + - '.github/workflows/smoke.yml' + - '.github/workflows/tests.yml' +jobs: + style: + runs-on: ubuntu-slim + steps: + - name: Checkout + uses: actions/checkout@v7 + - name: Python + uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 + with: + activate-environment: true + python-version: "3.14" + - name: Nim + uses: jiro4989/setup-nim-action@v2 + with: + nim-version: "stable" + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Linters + run: make lint + - name: pxdpad + run: make pxdpad diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml index 03688a9ab..f5e0c07e6 100644 --- a/.github/workflows/smoke.yml +++ b/.github/workflows/smoke.yml @@ -7,6 +7,8 @@ on: - '**.md' - '**.rst' - '**.txt' + - '**.pyi' + - '.github/workflows/lint.yml' - '.github/workflows/tests.yml' pull_request: branches: master @@ -14,28 +16,10 @@ on: - '**.md' - '**.rst' - '**.txt' + - '**.pyi' + - '.github/workflows/lint.yml' - '.github/workflows/tests.yml' jobs: - style: - runs-on: ubuntu-slim - steps: - - name: Checkout - uses: actions/checkout@v7 - - name: Python - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 - with: - activate-environment: true - python-version: "3.14" - - name: Nim - uses: jiro4989/setup-nim-action@v2 - with: - nim-version: "stable" - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Linters - run: make lint - - name: pxdpad - run: make pxdpad - nix: name: "py-${{ matrix.config.python }} lib-${{ matrix.config.ffmpeg }} ${{matrix.config.os}}" runs-on: ${{ matrix.config.os }}