PyPI readiness: Finalization of patchsim #18
Workflow file for this run
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, feature, dev, develop] | |
| pull_request: null | |
| jobs: | |
| test-and-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: .python-version | |
| - name: Sync dependencies (including dev) | |
| run: uv sync --extra dev --frozen | |
| - name: Ruff lint | |
| run: uv run --no-sync --frozen ruff check . | |
| - name: Ruff format check | |
| run: uv run --no-sync --frozen ruff format --check . | |
| - name: Run tests | |
| run: uv run --no-sync --frozen pytest -q | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: test-and-lint | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: .python-version | |
| - name: Sync dependencies | |
| run: uv sync --frozen | |
| - name: Build package | |
| run: uv build | |
| - name: Upload dist artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ |