Norrisizer/.forgejo/workflows/ci.yml
tmk3ki 1e9cc8f33d
Some checks failed
CI / check (push) Failing after 16s
CI: use git-based checkout instead of actions/checkout
2026-07-26 19:23:43 +09:00

20 lines
580 B
YAML

name: CI
on:
push:
pull_request:
jobs:
check:
runs-on: docker
container:
image: python:3.12-slim
steps:
- name: Checkout
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
command -v git >/dev/null || (apt-get update -qq && apt-get install -y -qq git)
git clone --depth 1 --branch "$GITHUB_REF_NAME" "https://x-access-token:${GITHUB_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
- run: pip install --no-cache-dir -r requirements.txt
- run: python -m py_compile app.py