mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-24 05:46:27 +01:00
get rid of github ci/cd version check of package…
Some checks failed
file length / file-length (push) Waiting to run
game_recording pre-commit / pre-commit (push) Waiting to run
game_recording tests / test (push) Waiting to run
gatelock 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
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
app_errors tests / test (push) Has been cancelled
crdt-sync pre-commit / pre-commit (push) Has been cancelled
crdt-sync tests / test (push) Has been cancelled
earned_time pre-commit / pre-commit (push) Has been cancelled
earned_time tests / test (push) Has been cancelled
focus-project pre-commit / pre-commit (push) Has been cancelled
focus-project tests / test (push) Has been cancelled
freedays pre-commit / pre-commit (push) Has been cancelled
freedays tests / test (push) Has been cancelled
gatelock pre-commit / pre-commit (push) Has been cancelled
holds pre-commit / pre-commit (push) Has been cancelled
holds tests / test (push) Has been cancelled
music_theory tests / test (push) Has been cancelled
omniroute_offload pre-commit / pre-commit (push) Has been cancelled
sql-drills pre-commit / pre-commit (push) Has been cancelled
sql-drills tests / test (push) Has been cancelled
Some checks failed
file length / file-length (push) Waiting to run
game_recording pre-commit / pre-commit (push) Waiting to run
game_recording tests / test (push) Waiting to run
gatelock 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
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
app_errors tests / test (push) Has been cancelled
crdt-sync pre-commit / pre-commit (push) Has been cancelled
crdt-sync tests / test (push) Has been cancelled
earned_time pre-commit / pre-commit (push) Has been cancelled
earned_time tests / test (push) Has been cancelled
focus-project pre-commit / pre-commit (push) Has been cancelled
focus-project tests / test (push) Has been cancelled
freedays pre-commit / pre-commit (push) Has been cancelled
freedays tests / test (push) Has been cancelled
gatelock pre-commit / pre-commit (push) Has been cancelled
holds pre-commit / pre-commit (push) Has been cancelled
holds tests / test (push) Has been cancelled
music_theory tests / test (push) Has been cancelled
omniroute_offload pre-commit / pre-commit (push) Has been cancelled
sql-drills pre-commit / pre-commit (push) Has been cancelled
sql-drills tests / test (push) Has been cancelled
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==9.2.0
|
||||||
pytest-cov==7.1.0
|
pytest-cov==7.1.0
|
||||||
requests==2.34.2
|
requests==2.34.2
|
||||||
ruff==0.17.5
|
ruff==0.17.6
|
||||||
types-requests==2.33.0.20261030
|
types-requests==2.33.0.20261030
|
||||||
|
|||||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
|||||||
pylint==4.1.4
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.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
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.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
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.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
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.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
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.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
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.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
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.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-randomly==5.1.0
|
||||||
pytest-xdist==3.8.0
|
pytest-xdist==3.8.0
|
||||||
requests==2.34.2
|
requests==2.34.2
|
||||||
ruff==0.17.5
|
ruff==0.17.6
|
||||||
types-requests==2.33.0.20261030
|
types-requests==2.33.0.20261030
|
||||||
|
|||||||
@ -8,4 +8,4 @@ pre-commit==4.7.0
|
|||||||
pylint==4.1.4
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.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
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.0
|
pytest-cov==7.1.0
|
||||||
ruff==0.17.5
|
ruff==0.17.6
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# scripts/check_dependency_freshness.sh <file> [<file> ...] # pre-commit
|
# 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)
|
# 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
|
# 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
|
# 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
|
# 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
|
# "Changed" = differs from the merge-base with $DEP_FRESHNESS_BASE (default
|
||||||
# main, then origin/main), working tree included, plus untracked files.
|
# main, then origin/main), working tree included, plus untracked files.
|
||||||
|
|||||||
@ -7,4 +7,4 @@ pre-commit==4.7.0
|
|||||||
pylint==4.1.4
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.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
|
pylint==4.1.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
pytest-cov==7.1.0
|
pytest-cov==7.1.0
|
||||||
ruff==0.17.5
|
ruff==0.17.6
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user