Update dependabot to use uv settings (#11) #29
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
| --- | |
| # used for running tests | |
| name: tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| pre_commit_checks: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| # checks out the repo | |
| - uses: actions/checkout@v5 | |
| # run pre-commit | |
| - name: Python setup | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v7 | |
| - uses: pre-commit/action@v3.0.1 | |
| # run pre-commit ci lite for automated fixes | |
| - uses: pre-commit-ci/lite-action@v1.1.0 | |
| if: ${{ !cancelled() }} | |
| run_tests: | |
| strategy: | |
| matrix: | |
| python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| os: [ubuntu-24.04, macos-14] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| OS: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Python setup | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python_version }} | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Run pytest | |
| run: uv run --frozen pytest |