Skip to content

docs(readme): add a Contributing section and link the roadmap (#78) #1

docs(readme): add a Contributing section and link the roadmap (#78)

docs(readme): add a Contributing section and link the roadmap (#78) #1

Workflow file for this run

name: Lint
on:
push:
branches: [main]
paths:
- "**.py"
- ".github/workflows/lint.yml"
pull_request:
paths:
- "**.py"
jobs:
syntax-check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Byte-compile every module
run: |
python -m compileall -q \
moon_engine.py moon_cli.py \
moon_extract.py moon_bridge.py render_gui.py \
integration_http.py integration_web.py \
tests/conftest.py tests/test_no_chrome.py
- name: Install ruff
run: pip install "ruff==0.16.1"
- name: Lint with ruff
run: ruff check .
no-chrome:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
# Chrome and the network are stubbed at the moon_extract boundary, so this
# job needs neither a browser nor a display -- only the engine's own imports.
- name: Install engine dependencies
run: pip install "aiohttp>=3.9" "curl_cffi>=0.7" "pytest==8.*"
- name: A fuckingfast batch must not open a browser
run: pytest tests/ -q