refactor: migrate rexos-cli to loopforge-cli across repo #62
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: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| scripts-tests: | |
| name: scripts tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Run scripts unit tests | |
| run: | | |
| python3 -m unittest \ | |
| scripts.tests.test_ci_workflows \ | |
| scripts.tests.test_verify_version_changelog \ | |
| scripts.tests.test_verify_release_consistency \ | |
| scripts.tests.test_provider_health_report \ | |
| scripts.tests.test_package_release \ | |
| scripts.tests.test_onboard_metrics_report | |
| versioning-guard: | |
| name: versioning guard (PR) | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Verify version/changelog rule | |
| run: | | |
| python3 scripts/verify_version_changelog.py \ | |
| --base-ref "${{ github.event.pull_request.base.sha }}" \ | |
| --head-ref "${{ github.sha }}" | |
| test: | |
| name: cargo test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Test | |
| run: cargo test --workspace --locked | |
| docs: | |
| name: docs build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| cache: pip | |
| cache-dependency-path: requirements-docs.txt | |
| - name: Install docs dependencies | |
| run: pip install -r requirements-docs.txt | |
| - name: Build docs | |
| run: python -m mkdocs build --strict |