mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-19 18:34:33 +01:00
get rid of github ci/cd version check of package…
Some checks are pending
app_errors tests / test (push) Waiting to run
crdt-sync pre-commit / pre-commit (push) Waiting to run
crdt-sync tests / test (push) Waiting to run
earned_time pre-commit / pre-commit (push) Waiting to run
earned_time tests / test (push) Waiting to run
file length / file-length (push) Waiting to run
focus-project pre-commit / pre-commit (push) Waiting to run
focus-project tests / test (push) Waiting to run
freedays pre-commit / pre-commit (push) Waiting to run
freedays tests / test (push) Waiting to run
game_recording pre-commit / pre-commit (push) Waiting to run
game_recording tests / test (push) Waiting to run
gatelock pre-commit / pre-commit (push) Waiting to run
gatelock tests / test (push) Waiting to run
holds pre-commit / pre-commit (push) Waiting to run
holds tests / test (push) Waiting to run
leetcode-coach pre-commit / pre-commit (push) Waiting to run
leetcode-coach tests / test (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
music_theory tests / test (push) Waiting to run
omniroute_offload pre-commit / pre-commit (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
sickdays pre-commit / pre-commit (push) Waiting to run
sickdays tests / test (push) Waiting to run
sql-drills pre-commit / pre-commit (push) Waiting to run
sql-drills tests / test (push) Waiting to run
Some checks are pending
app_errors tests / test (push) Waiting to run
crdt-sync pre-commit / pre-commit (push) Waiting to run
crdt-sync tests / test (push) Waiting to run
earned_time pre-commit / pre-commit (push) Waiting to run
earned_time tests / test (push) Waiting to run
file length / file-length (push) Waiting to run
focus-project pre-commit / pre-commit (push) Waiting to run
focus-project tests / test (push) Waiting to run
freedays pre-commit / pre-commit (push) Waiting to run
freedays tests / test (push) Waiting to run
game_recording pre-commit / pre-commit (push) Waiting to run
game_recording tests / test (push) Waiting to run
gatelock pre-commit / pre-commit (push) Waiting to run
gatelock tests / test (push) Waiting to run
holds pre-commit / pre-commit (push) Waiting to run
holds tests / test (push) Waiting to run
leetcode-coach pre-commit / pre-commit (push) Waiting to run
leetcode-coach tests / test (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
music_theory tests / test (push) Waiting to run
omniroute_offload pre-commit / pre-commit (push) Waiting to run
palette drift / palette (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
sickdays pre-commit / pre-commit (push) Waiting to run
sickdays tests / test (push) Waiting to run
sql-drills pre-commit / pre-commit (push) Waiting to run
sql-drills tests / test (push) Waiting to run
Todo: 2556952d
This commit is contained in:
parent
ebaa2e5d1e
commit
c75f6310b0
2
.dep-freshness-no-workflow
Normal file
2
.dep-freshness-no-workflow
Normal file
@ -0,0 +1,2 @@
|
||||
# Dependency freshness runs locally only (pre-commit hook); no GitHub Actions
|
||||
# workflow. This marker stops the fleet installer from re-adding it.
|
||||
61
.github/workflows/dependency-freshness.yml
vendored
61
.github/workflows/dependency-freshness.yml
vendored
@ -1,61 +0,0 @@
|
||||
name: dependency freshness
|
||||
|
||||
# Every dependency on its ecosystem's newest STABLE release, enforced on push
|
||||
# as well as at commit time. The local pre-commit hook only sees the manifests
|
||||
# in a commit and can be skipped entirely by a fresh clone that never ran
|
||||
# `pre-commit install`; this runs `--all` over the whole repo.
|
||||
#
|
||||
# `--strict` is CI-only. Offline the gate degrades to its cached answer and
|
||||
# passes, because `--no-verify` is banned locally and a hook that hard-failed
|
||||
# on a flaky connection would leave no way to commit. A runner is always
|
||||
# online, so here an undeterminable answer is a real failure.
|
||||
#
|
||||
# Expect this to go red for reasons this repo's commit did not cause: an
|
||||
# upstream release overnight is enough. That is the chosen behaviour -- the
|
||||
# alternative is a gate that only notices staleness when someone remembers to
|
||||
# look.
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
dependency-freshness:
|
||||
name: dependencies on newest stable
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# The gate lives in the shared utils repo so every repo resolves the
|
||||
# same "latest stable" the same way. Checking it out beats vendoring a
|
||||
# copy, which is exactly how a gate and its survey start disagreeing.
|
||||
- name: Check out the shared gate
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: kuhyx/utils
|
||||
path: .utils
|
||||
|
||||
# Any recent Python runs the gate. The Python TARGET is python.org's
|
||||
# newest release (registries/toolchain.python_latest), not this
|
||||
# interpreter: when it was, "3.x" resolved to 3.15.0 on one runner and
|
||||
# 3.14.8 on the next, and spellcode's allowlist flipped dead/required.
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
|
||||
- name: Install the gate's two runtime dependencies
|
||||
run: python -m pip install --upgrade pyyaml packaging
|
||||
|
||||
- name: Cache registry lookups
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/dep-freshness
|
||||
key: dep-freshness-${{ hashFiles('**/pubspec.yaml', '**/pyproject.toml',
|
||||
'**/requirements*.txt', '**/package.json', '**/Cargo.toml', '**/go.mod') }}
|
||||
restore-keys: dep-freshness-
|
||||
|
||||
- name: Every dependency is on newest stable
|
||||
run: bash .utils/scripts/check_dependency_freshness.sh --all --strict
|
||||
@ -10,5 +10,5 @@ pynacl==1.6.2
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
requests==2.34.2
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
types-requests==2.33.0.20261030
|
||||
|
||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
@ -8,4 +8,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
@ -16,5 +16,5 @@ pytest-cov==7.1.0
|
||||
pytest-randomly==5.1.0
|
||||
pytest-xdist==3.8.0
|
||||
requests==2.34.2
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
types-requests==2.33.0.20261030
|
||||
|
||||
@ -8,4 +8,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
#
|
||||
# Usage:
|
||||
# scripts/check_dependency_freshness.sh <file> [<file> ...] # pre-commit
|
||||
# scripts/check_dependency_freshness.sh --all --strict # CI
|
||||
# scripts/check_dependency_freshness.sh --all --strict # full local sweep
|
||||
#
|
||||
# Exit: 0 current | 1 behind | 2 allowlist wrong | 3 undeterminable (offline)
|
||||
# ============================================================================
|
||||
|
||||
@ -7,7 +7,8 @@
|
||||
# every manifest in the monorepo, so one feature branch went red on 43 stale
|
||||
# pins in 12 projects it never touched. Scoping to changed manifests makes the
|
||||
# hook answer "did this change leave a stale pin?". The repo-wide question
|
||||
# stays with CI (.github/workflows/dependency-freshness.yml: --all --strict).
|
||||
# is a local sweep (scripts/check_dependency_freshness.sh --all --strict);
|
||||
# there is no CI workflow for it (.dep-freshness-no-workflow).
|
||||
#
|
||||
# "Changed" = differs from the merge-base with $DEP_FRESHNESS_BASE (default
|
||||
# main, then origin/main), working tree included, plus untracked files.
|
||||
|
||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
||||
pylint==4.1.4
|
||||
pytest==9.2.0
|
||||
pytest-cov==7.1.0
|
||||
ruff==0.17.5
|
||||
ruff==0.17.6
|
||||
|
||||
Loading…
Reference in New Issue
Block a user