2024-01-03 23:43:35 +01:00
|
|
|
name: Python CI
|
|
|
|
on:
|
|
|
|
push:
|
2024-04-02 11:28:04 +02:00
|
|
|
branches: ['main']
|
2024-01-03 23:43:35 +01:00
|
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-01-05 02:18:20 +01:00
|
|
|
name: 'Format Backend'
|
2024-04-02 11:28:04 +02:00
|
|
|
env:
|
|
|
|
PUBLIC_API_BASE_URL: ''
|
2024-01-03 23:43:35 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-04-02 11:28:04 +02:00
|
|
|
node-version:
|
|
|
|
- latest
|
2024-01-03 23:43:35 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-04-02 11:28:04 +02:00
|
|
|
- name: Use Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
- name: Use Bun
|
|
|
|
uses: oven-sh/setup-bun@v1
|
2024-01-03 23:43:35 +01:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
2024-04-02 11:28:04 +02:00
|
|
|
pip install yapf
|
2024-01-03 23:43:35 +01:00
|
|
|
- name: Format backend
|
2024-04-02 11:28:04 +02:00
|
|
|
run: bun run format:backend
|