name: ci on: push: pull_request: jobs: test: strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] python: ["3.10", "3.12"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} cache: pip - uses: actions/setup-node@v4 with: node-version: "20" cache: npm - run: python -m pip install -r requirements-qa.txt - run: npm ci - run: python -m compileall -q scripts tests - run: ruff format --check scripts tests - run: ruff check scripts tests - run: node --check assets/web-showcase-template/app.js - run: node --check scripts/dwg_dump_json.mjs - run: node --check scripts/web_smoke_test.mjs - run: node --check tools/compress.mjs - run: pytest tests/test_contracts.py tests/test_delivery.py - run: python tests/test_extraction_pipeline.py browser-smoke: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" cache: pip - uses: actions/setup-node@v4 with: node-version: "20" cache: npm - run: python -m pip install -r requirements-qa.txt - run: npm ci - run: npx playwright install --with-deps chromium - run: pytest tests/test_browser_smoke.py env: RUN_BROWSER_SMOKE: "1"