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