Merge pull request #41 from Derivedbetter/fix/windows-skill-atomic-fo… #47
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 | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Set up uv and Python | |
| uses: astral-sh/setup-uv@v9.0.0 | |
| with: | |
| version: "latest" | |
| python-version: "3.12" | |
| enable-cache: true | |
| - name: Install lint dependencies | |
| run: uv sync --group lint | |
| - name: Run Ruff | |
| run: uv run ruff check . | |
| - name: Check formatting | |
| run: uv run ruff format --check . | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Set up uv and Python | |
| uses: astral-sh/setup-uv@v9.0.0 | |
| with: | |
| version: "latest" | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install test dependencies | |
| run: uv sync --group tests | |
| - name: Run unit tests | |
| run: uv run pytest tests/ -v |