Fix Gitea-runner python matrix: uv-managed interpreters, pin ruff
Swap README badges to the public GitHub mirror (workflows and releases).
This commit is contained in:
@@ -43,20 +43,21 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- name: install dev deps
|
||||
run: python -m pip install --upgrade pip pytest ruff
|
||||
# uv-managed interpreters instead of actions/setup-python: the prebuilt-CPython
|
||||
# download path setup-python relies on does not work on the self-hosted Gitea
|
||||
# runner (all three matrix jobs failed at setup there while passing on GitHub);
|
||||
# uv works identically on both.
|
||||
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
|
||||
|
||||
- name: ruff
|
||||
run: ruff check patch tests tools
|
||||
# Pinned: an unpinned ruff means any upstream release can turn main red
|
||||
# with no code change.
|
||||
run: uvx ruff@0.16.1 check patch tests tools
|
||||
|
||||
- name: pytest
|
||||
run: pytest tests -v
|
||||
run: uvx --python ${{ matrix.python }} pytest tests -v
|
||||
|
||||
- name: verify injected middleware blocks compile
|
||||
# Belt-and-braces: the *_BLOCK strings are appended into live middlewared
|
||||
# modules. A syntax error there would break the box at boot.
|
||||
run: pytest tests/test_apply_blocks.py -v
|
||||
run: uvx --python ${{ matrix.python }} pytest tests/test_apply_blocks.py -v
|
||||
|
||||
@@ -9,6 +9,15 @@ worse than no alert, because one day it carries a security fix.
|
||||
## Unreleased
|
||||
### Changed
|
||||
|
||||
- **CI's python matrix now uses uv-managed interpreters instead of
|
||||
`actions/setup-python`**, which failed at environment setup on the self-hosted
|
||||
Gitea runner (GitHub Actions was unaffected — same file, both green now). Ruff is
|
||||
pinned to 0.16.1 in the same job so an upstream ruff release can't turn `main`
|
||||
red without a code change.
|
||||
- **README badges point at the public GitHub mirror** (workflow status and
|
||||
releases) instead of the private forge. The release badge had also been reading
|
||||
the stale Gitea v0.6.1 release instead of the current v0.7.0 on GitHub.
|
||||
|
||||
- **`master` is now labelled `27-dev`, because it is not the next release.** iX
|
||||
branches each major onto its own `release/` line and master rolls straight on to the
|
||||
one after — on 2026-07-14 every recent commit on master targeted `27.0.0-BETA.1`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# truenas-truecloud-patch
|
||||
|
||||
[](https://git.onetick.ninja/flan/truenas-truecloud-patch/actions) [](https://git.onetick.ninja/flan/truenas-truecloud-patch/releases) [](LICENSE) [](https://github.com/sponsors/sudolulo) [](https://ko-fi.com/sudolulo)
|
||||
[](https://github.com/sudolulo/truenas-truecloud-patch/actions) [](https://github.com/sudolulo/truenas-truecloud-patch/releases) [](LICENSE) [](https://github.com/sponsors/sudolulo) [](https://ko-fi.com/sudolulo)
|
||||
|
||||
Extends TrueNAS SCALE's **TrueCloud Backup** to:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user