Merge pull request #7 from remo7k/fix/onix-31-unboundlocalerror #14
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: Run Tests | |
| on: | |
| push: | |
| branches: [ '**' ] # Run on all branches | |
| pull_request: | |
| branches: [ '**' ] # Run on PRs targeting any branch | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| version: "0.6.9" # Pin to specific version for stability | |
| - name: Install dependencies | |
| run: uv sync --all-extras --dev | |
| - name: Run tests | |
| run: uv run pytest | |
| - name: Build package | |
| run: uv run python -m build | |
| - name: Test package installation | |
| run: | | |
| uv pip install dist/*.whl | |
| onixcheck --version | |
| - name: Minimize uv cache | |
| run: uv cache prune --ci |