format: Format #63
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
| # This workflow runs Python tests for the build_tools module | |
| # Separate from the .NET tests to keep concerns isolated | |
| name: Python Build Tools | |
| on: | |
| push: | |
| branches: [ "mainline" ] | |
| paths: | |
| - 'build_tools/**' | |
| - '.github/workflows/python-build-tools.yml' | |
| - '!build_tools/**/*.md' | |
| pull_request: | |
| branches: [ "mainline" ] | |
| paths: | |
| - 'build_tools/**' | |
| - '.github/workflows/python-build-tools.yml' | |
| - '!build_tools/**/*.md' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| python-version: ["3.12"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| # Install sharpy_auto_builder as editable package | |
| pip install -e "build_tools/sharpy_auto_builder[dev]" | |
| - name: Run tests with pytest | |
| env: | |
| # Add repo root to PYTHONPATH to support 'from build_tools.' imports | |
| PYTHONPATH: ${{ github.workspace }} | |
| run: | | |
| python -m pytest build_tools/tests/ -v --tb=short |