Skip to content

style: add auth template #48

style: add auth template

style: add auth template #48

Workflow file for this run

name: PR Jobs
on:
pull_request:
jobs:
pytest:
name: Python Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/ci.txt
- name: Test with pytest
run: |
pytest
black:
name: Python Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run black
uses: psf/black@8a737e727ac5ab2f1d4cf5876720ed276dc8dc4b # stable
with:
options: ". --check --verbose"
pylint:
name: Python Lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/ci.txt
- name: Run pylint
run: |
pylint $(git ls-files '*.py' | grep -v dnspython)
eslint:
name: JS Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2
- name: Setup Bun and Run ESLint
run: |
bun init -y
bun add eslint @eslint/js
bunx eslint
stylelint:
name: CSS Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2
- name: Run stylelint
run: |
bun init -y
bun install stylelint stylelint-config-standard
bunx stylelint static/css/*.css
actionlint:
name: 'Github Actions YAML Lint'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Download actionlint
run: |
VERSION="1.7.7"
ARCH=$(dpkg --print-architecture)
wget -c "https://github.com/rhysd/actionlint/releases/download/v${VERSION}/actionlint_${VERSION}_linux_${ARCH}.tar.gz" -O - | tar -xz
- name: Check workflow files
run: ./actionlint -shellcheck= -pyflakes= -color