From 7c746e996980effdfe5693925637682f6a9ef267 Mon Sep 17 00:00:00 2001 From: g1394 Date: Thu, 5 Nov 2026 19:24:04 +0800 Subject: [PATCH] ci: pip cache, concurrency and job timeouts Same CI shape as minas-webdav: cached pip, cancelled superseded runs, and a timeout on every job. --- .github/workflows/tests.yml | 13 +++++++++++++ CHANGELOG.md | 10 +++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 90fdc70..8f15e23 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,11 +3,15 @@ permissions: # SPDX-License-Identifier: Apache-2.0 name: tests +concurrency: + group: tests-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true on: push: pull_request: jobs: unittest: + timeout-minutes: 20 strategy: fail-fast: false matrix: @@ -19,27 +23,35 @@ jobs: - uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} + cache: pip + cache-dependency-path: pyproject.toml - name: Run unit tests run: python -m unittest discover -s tests -v lint: + timeout-minutes: 10 runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: actions/setup-python@v7 with: python-version: "3.12" + cache: pip + cache-dependency-path: pyproject.toml - run: python -m pip install ruff - name: lint run: ruff check . - name: format run: ruff format --check . coverage: + timeout-minutes: 15 runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: actions/setup-python@v7 with: python-version: "3.12" + cache: pip + cache-dependency-path: pyproject.toml - run: python -m pip install coverage - name: Measure and enforce the coverage floor # Ratchet, not a target: the measured baseline on 2026-11-05 was 45% @@ -52,6 +64,7 @@ jobs: # interpreter version, so requiring them directly would break every time the # matrix changes. ci-ok: + timeout-minutes: 5 name: ci-ok if: always() needs: [unittest, lint, coverage] diff --git a/CHANGELOG.md b/CHANGELOG.md index 00349f4..1bbccbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.3.5] - 2026-11-05 + +### Changed + +- CI: `setup-python` caches pip, a `concurrency` group cancels superseded runs, + and every job has a `timeout-minutes` cap — same shape as `minas-webdav`. + ## [0.3.4] - 2026-11-05 ### Changed @@ -151,7 +158,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 (`shares` / `ls` / `du` / `tree` / `df` / `get` / `put` / `cat` / `mkdir` / `mv` / `cp` / `rm` / `find`), offline tests, gitleaks CI, Apache-2.0. -[Unreleased]: https://github.com/LUgABeEEE/minas-skill/compare/v0.3.4...HEAD +[Unreleased]: https://github.com/LUgABeEEE/minas-skill/compare/v0.3.5...HEAD +[0.3.5]: https://github.com/LUgABeEEE/minas-skill/compare/v0.3.4...v0.3.5 [0.3.4]: https://github.com/LUgABeEEE/minas-skill/compare/v0.3.3...v0.3.4 [0.3.3]: https://github.com/LUgABeEEE/minas-skill/compare/v0.3.2...v0.3.3 [0.3.2]: https://github.com/LUgABeEEE/minas-skill/compare/v0.3.1...v0.3.2