diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3655ec1..e01d55f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,7 @@ -# Keeps the actions the workflows use current: one grouped pull request a week, read and merged by a maintainer. -# Only the workflow actions: the package's own dependencies are not updated from here. +# Keeps the actions the workflows use and the packages the tests and checks install current: one grouped pull +# request a week for each, read and merged by a maintainer. The uv group moves uv.lock, which CI and the release +# install from exactly (uv sync --locked). It holds minor and patch updates only: a new major arrives as a pull +# request of its own. version: 2 updates: - package-ecosystem: github-actions @@ -9,3 +11,11 @@ updates: groups: actions: patterns: ['*'] + - package-ecosystem: uv + directory: / + schedule: + interval: weekly + groups: + uv: + patterns: ['*'] + update-types: [minor, patch] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f464519..efd0938 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - uses: astral-sh/setup-uv@v7 with: python-version: ${{ matrix.python }} - - run: uv sync + - run: uv sync --locked - run: uv run python --version - run: uv run pytest -q - run: uv run ruff check . @@ -52,7 +52,7 @@ jobs: steps: - uses: actions/checkout@v7 - uses: astral-sh/setup-uv@v7 - - run: uv sync + - run: uv sync --locked - name: OKF's reference code at the pinned commit run: | REPO=$(uv run python -c "from onlyworlds import okf; print(okf.OKF_REPO)") @@ -80,5 +80,5 @@ jobs: steps: - uses: actions/checkout@v7 - uses: astral-sh/setup-uv@v7 - - run: uv sync + - run: uv sync --locked - run: uv run pytest -q tests/test_wire.py tests/test_live.py tests/test_live_practice.py diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 800b8a2..65956cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,7 +59,7 @@ jobs: echo "the $v entry names someone inside the team or points at an internal room or tracker (above): say the rule and its date instead"; exit 1 fi - - run: uv sync + - run: uv sync --locked - run: uv run pytest -q - run: uv run ruff check . - run: uv run mypy --strict src tests