montana/Русский/Логистика/.github/workflows/ci.yml

41 lines
1015 B
YAML

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint-and-test:
runs-on: ubuntu-latest
env:
SECRET_KEY: ci-test-secret-key
ANTHROPIC_API_KEY: fake-key-for-ci
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Syntax check (py_compile)
run: |
python -m py_compile seafare_api.py
python -m py_compile seafare_agent.py
python -m py_compile maritime_db.py
python -m py_compile moltbook_bot.py
python -m py_compile ais_provider.py
python -m py_compile equasis_parser.py
python -m py_compile marinetraffic_parser.py
python -m py_compile maritime_compliance.py
- name: Run tests
run: python -m pytest tests/ -v --tb=short