mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-27 10:09:13 +01:00
Compare commits
2 Commits
abd8793e60
...
3cd04e60dc
| Author | SHA1 | Date | |
|---|---|---|---|
| 3cd04e60dc | |||
| a79b0175d5 |
62
.github/workflows/dependency-freshness.yml
vendored
62
.github/workflows/dependency-freshness.yml
vendored
@ -1,62 +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
|
|
||||||
|
|
||||||
# "3.x", never a pinned minor: the Python target IS the interpreter the
|
|
||||||
# gate runs under (registries/toolchain.python_installed), so a runner
|
|
||||||
# held a release behind this machine reports a repo's `requires-python`
|
|
||||||
# as excluding "latest" while the same check passes locally. flax-docs-mcp
|
|
||||||
# hit exactly that -- `>=3.14` green here, red on a 3.13 runner.
|
|
||||||
- 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
|
|
||||||
14
.github/workflows/pre-commit.yml
vendored
14
.github/workflows/pre-commit.yml
vendored
@ -25,14 +25,14 @@ jobs:
|
|||||||
skip: ""
|
skip: ""
|
||||||
- group: rest
|
- group: rest
|
||||||
hooks: ""
|
hooks: ""
|
||||||
skip: mypy,pylint
|
skip: mypy,pylint,dependency-freshness
|
||||||
name: pre-commit (${{ matrix.group }})
|
name: pre-commit (${{ matrix.group }})
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# The file-length, md-naming and dependency-freshness hooks delegate to
|
# The file-length and md-naming hooks delegate to the shared gates in
|
||||||
# the shared gates in kuhyx/utils, which a runner does not have at
|
# kuhyx/utils, which a runner does not have at $HOME/src/utils. Only
|
||||||
# $HOME/src/utils. Only the rest group runs them.
|
# the rest group runs them.
|
||||||
- name: Check out the shared gates
|
- name: Check out the shared gates
|
||||||
if: matrix.group == 'rest'
|
if: matrix.group == 'rest'
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -59,9 +59,9 @@ jobs:
|
|||||||
# mypy and pylint bring their own hook environments, so they need only
|
# mypy and pylint bring their own hook environments, so they need only
|
||||||
# pre-commit. The rest group's language: system patch-targets hook
|
# pre-commit. The rest group's language: system patch-targets hook
|
||||||
# imports diet_guard and every patched module (requests, gatelock,
|
# imports diet_guard and every patched module (requests, gatelock,
|
||||||
# crdt_sync, freedays, mcp, pydantic), and dependency-freshness needs
|
# crdt_sync, freedays, mcp, pydantic) -- so it keeps the full
|
||||||
# pyyaml and packaging -- so it keeps the full requirements.txt. That
|
# requirements.txt. That install used to run in the one job, with plain
|
||||||
# install used to run in the one job, with plain pip, for ~24 s.
|
# pip, for ~24 s.
|
||||||
- name: Install pre-commit and the system hooks' imports
|
- name: Install pre-commit and the system hooks' imports
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ matrix.group }}" == rest ]]; then
|
if [[ "${{ matrix.group }}" == rest ]]; then
|
||||||
|
|||||||
@ -2,7 +2,7 @@ name: diet_guard_app
|
|||||||
description: "Companion phone app for diet_guard: log meals on the go."
|
description: "Companion phone app for diet_guard: log meals on the go."
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 1.0.185+1
|
version: 1.0.186+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.12.2
|
sdk: ^3.12.2
|
||||||
|
|||||||
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
||||||
<meta name="description" content="A new Flutter project.">
|
|
||||||
|
|
||||||
<!-- iOS meta tags & icons -->
|
<!-- iOS meta tags & icons -->
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
|
|||||||
@ -5,7 +5,6 @@
|
|||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"background_color": "#0175C2",
|
"background_color": "#0175C2",
|
||||||
"theme_color": "#0175C2",
|
"theme_color": "#0175C2",
|
||||||
"description": "A new Flutter project.",
|
|
||||||
"orientation": "portrait-primary",
|
"orientation": "portrait-primary",
|
||||||
"prefer_related_applications": false,
|
"prefer_related_applications": false,
|
||||||
"icons": [
|
"icons": [
|
||||||
|
|||||||
@ -19,6 +19,9 @@ and `test_gate_no_words_static.py` (Tk gate), `app/test/no_words_*_test.dart`
|
|||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `app/lib/main.dart` | `Diet Guard` | `MaterialApp.title`: task switcher and tab name |
|
| `app/lib/main.dart` | `Diet Guard` | `MaterialApp.title`: task switcher and tab name |
|
||||||
| `diet_guard/_gatelock.py` | `Diet Gate` | window title, an identifier under override-redirect |
|
| `diet_guard/_gatelock.py` | `Diet Gate` | window title, an identifier under override-redirect |
|
||||||
|
| `app/android/app/src/main/AndroidManifest.xml` | `DietGuard` | `android:label`: launcher name |
|
||||||
|
| `app/desktop/install_desktop_entry.sh` | `DietGuard`, `Diet logging and budget companion` | `.desktop` Name and Comment: app-menu entry |
|
||||||
|
| `packaging/aur/PKGBUILD` | `DietGuard`, `Diet logging and budget companion` | `.desktop` Name and Comment in the AUR package |
|
||||||
|
|
||||||
The launcher label and notification channel (`DietGuard`) live in
|
The launcher label and notification channel (`DietGuard`) live in
|
||||||
`AndroidManifest.xml` and `notification_backend_io.dart`; a due-slot
|
`AndroidManifest.xml` and `notification_backend_io.dart`; a due-slot
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user