merge: aligner main sur origin/develop (derniers commits) #273
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| name: Lint (ruff + black) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| cache: "pip" | |
| - name: Install tooling | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff black | |
| - name: Ruff (progressive scope) | |
| run: | | |
| ruff check \ | |
| Core/deps_analyser/analyser.py \ | |
| Core/IdeLikeGui/connections.py \ | |
| EngineLoader/base.py \ | |
| tests/test_engine_install_flow.py \ | |
| tests/test_deps_analyser_heuristics.py | |
| - name: Black (progressive scope) | |
| run: | | |
| black --check \ | |
| Core/deps_analyser/analyser.py \ | |
| Core/IdeLikeGui/connections.py \ | |
| EngineLoader/base.py \ | |
| tests/test_engine_install_flow.py \ | |
| tests/test_deps_analyser_heuristics.py | |
| typecheck: | |
| name: Type check (progressive scope) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| cache: "pip" | |
| - name: Install typing tool | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install mypy | |
| - name: Mypy (progressive scope) | |
| run: | | |
| mypy \ | |
| --ignore-missing-imports \ | |
| --follow-imports skip \ | |
| --disable-error-code attr-defined \ | |
| --disable-error-code import-untyped \ | |
| EngineLoader/base.py \ | |
| Core/deps_analyser/analyser.py \ | |
| Core/IdeLikeGui/connections.py \ | |
| tests/test_engine_install_flow.py \ | |
| tests/test_deps_analyser_heuristics.py | |
| tests: | |
| name: Tests (${{ matrix.os }}, py${{ matrix.python-version }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| python-version: ["3.12", "3.13"] | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run unit tests | |
| run: pytest -q | |
| smoke: | |
| name: Smoke checks (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| needs: [lint, typecheck, tests] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Compile sources | |
| run: python -m compileall -q . | |
| - name: CLI smoke | |
| run: | | |
| python pycompiler_ark.py --help | |
| python pycompiler_ark.py --help-all | |
| python pycompiler_ark.py --version | |
| python pycompiler_ark.py --info |