Skip to content

Update dependency ruff to v0.9.3 #144

Update dependency ruff to v0.9.3

Update dependency ruff to v0.9.3 #144

---
name: Devcontainer-based CI
on: # yamllint disable-line rule:truthy
push:
branches:
- main
- renovate/**
pull_request:
jobs:
build-devcontainer:
runs-on: ubuntu-latest
permissions:
contents: "read"
packages: "write"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Login to GitHub Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pre-build dev container image
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/${{ github.repository }}-devcontainer
imageName: ghcr.io/${{ github.repository }}-devcontainer
push: filter
refFilterForPush: refs/heads/main
just-check:
needs: build-devcontainer
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Validate justfile
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/${{ github.repository }}-devcontainer
push: never
runCmd: just just-check
format:
needs: just-check
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run formatting
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/${{ github.repository }}-devcontainer
push: never
runCmd: |
just just-format
just ruff-format
quick-lint:
needs: just-check
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run quick-lint
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/${{ github.repository }}-devcontainer
push: never
runCmd: |
just hadolint
just pyright
just renovate-validate
just ruff-check
just yamllint
pytest:
needs: just-check
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run pytest
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/${{ github.repository }}-devcontainer
push: never
runCmd: just pytest