Add fixes to custom JS #149
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: Build | |
| on: | |
| push: | |
| pull_request: | |
| types: [opened, edited, synchronize] | |
| jobs: | |
| build: | |
| name: Build distributions @ ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install uv and set Python | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| version: "0.8.22" | |
| - name: Build wheel | |
| run: uv build --wheel | |
| - name: Upload wheel artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: artifact-wheel-${{ matrix.python-version }} | |
| path: dist/*.whl | |
| sdist: | |
| name: Make source distribution | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install uv and set Python | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: true | |
| version: "0.8.22" | |
| - name: Build sdist | |
| run: uv build --sdist | |
| - name: Upload sdist artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: artifact-source-dist | |
| path: dist/*.tar.gz | |
| lint: | |
| name: Type Coverage and Linting @ ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Install uv and set Python | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| activate-environment: true | |
| - name: Install project and dev dependencies | |
| run: uv sync --frozen | |
| - name: Run Pyright | |
| uses: jakebailey/pyright-action@v3 | |
| with: | |
| version: "1.1.408" | |
| warnings: false | |
| - name: Lint with Ruff | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: check . | |
| - name: Check formatting with Ruff | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: format --check . |