ANewDawn/.github/workflows/ci.yml
2026-03-17 20:56:59 +01:00

34 lines
696 B
YAML

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
ci:
runs-on: self-hosted
env:
DISCORD_TOKEN: "0"
OPENAI_TOKEN: "0"
steps:
- uses: actions/checkout@v6
- name: Print the local dir and list files for debugging
run: |
echo "Current directory: $(pwd)"
echo "Files in current directory:"
ls -ahl
- name: Install dependencies
run: uv sync --all-extras --dev -U
- name: Lint the Python code using ruff
run: ruff check --exit-non-zero-on-fix --verbose
- name: Check formatting
run: ruff format --check --verbose
- name: Run tests
run: uv run pytest