-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (48 loc) · 1.3 KB
/
nameless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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."