Files
lingma-openai-gateway/.gitea/workflows/ci.yml
root 640bf3d6b4
Some checks failed
CI / lint-and-compile (pull_request) Has been cancelled
CI / lint-and-compile (push) Has been cancelled
ci: use self-hosted runner and simplify python steps
2026-04-17 17:36:49 +08:00

32 lines
620 B
YAML

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
lint-and-compile:
# Prefer local Gitea runner labels to avoid pending/cancelled jobs.
runs-on: self-hosted
timeout-minutes: 15
steps:
- name: Show environment
run: |
pwd
ls -la
python3 --version
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
- name: Compile Python files
run: |
python3 -m py_compile app/*.py