Skip to content

Don't fight The Nameless. #54

Don't fight The Nameless.

Don't fight The Nameless. #54

Workflow file for this run

name: Validate pushes to official nameless* branch(es)
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
- "feat/**"
workflow_dispatch:
permissions:
contents: write
jobs:
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: |
**/requirements*.txt
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements.dev.txt
- name: Create Prisma client
run: |
prisma db push
- name: Fix the code with ruff
run: |
ruff check --exit-zero .
ruff format .
- name: Type checking with BasedPyright
run: |
basedpyright
- name: Push the formatted code if needed.
uses: stefanzweifel/git-auto-commit-action@v5
if: ${{ matrix.python-version == '3.13' }}
with:
commit_message: "[ci skip] Automated code format commit."