⬆️ dep-bump(lock): update poetry lock #26
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 Checks | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: ["**"] | |
| jobs: | |
| commit-check: | |
| name: Commit Messages | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' # Only run on PRs | |
| steps: | |
| - name: Check out code with full history | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Needed for commit range check | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Set up Poetry | |
| uses: abatilo/actions-poetry@v4.0.0 | |
| with: | |
| poetry-version: '1.8.3' | |
| - name: Install dependencies | |
| run: poetry install --with dev | |
| - name: Check commit messages in PR | |
| run: poetry run cz check --rev-range ${{ github.event.pull_request.base.sha }}..${{ github.sha }} | |
| python-checks: | |
| name: Linting and Formatting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Set up Poetry | |
| uses: abatilo/actions-poetry@v4.0.0 | |
| with: | |
| poetry-version: '1.8.3' | |
| - name: Install dependencies | |
| run: poetry install --with dev | |
| - name: Run Ruff Linting | |
| run: poetry run ruff check . | |
| - name: Run Ruff Formatting Check | |
| run: poetry run ruff format --check . | |
| test: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Set up Poetry | |
| uses: abatilo/actions-poetry@v4.0.0 | |
| with: | |
| poetry-version: '1.8.3' | |
| - name: Install dependencies | |
| run: poetry install --with dev | |
| - name: Run tests with coverage | |
| run: poetry run pytest --cov --cov-report=xml:reports/coverage.xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: reports/coverage.xml | |
| fail_ci_if_error: true |