mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-10 20:47:03 +01:00
The previous commit fixed the dependency resolution failure that had kept Python tests red since ~2026-08-19 -- and then did not run it, because the workflow's path filter lists "requirements.txt" while the root file is a SYMLINK into meta/. GitHub matches filters against the path as git records it, so editing the real file matched nothing and the red result stayed pinned to an older commit. A gate that cannot be triggered by the change it gates is the same class of problem as the two found earlier today: it reports a stale answer and looks fine. Both spellings are now listed, in the push and pull_request filters. The other root symlinks -- pyproject.toml, run.sh, lint_python.sh, .fvmrc -- are in no workflow filter today, so they carry the same latent trap if one is ever added. CI_GREEN_SKIP=1: the baseline is red only from the pre-fix Python tests run this commit exists to make reachable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp
57 lines
2.0 KiB
YAML
57 lines
2.0 KiB
YAML
name: Python tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "python_pkg/lichess_bot/**"
|
|
- "python_pkg/**"
|
|
- "tests/**"
|
|
- "linux_configuration/scripts/periodic_background/system-maintenance/bin/**"
|
|
- "linux_configuration/tests/**"
|
|
# Both spellings: the root requirements.txt is a SYMLINK into meta/,
|
|
# and GitHub matches path filters against the changed path as git
|
|
# records it. Editing meta/requirements.txt therefore did NOT match
|
|
# "requirements.txt", so a dependency fix silently skipped this
|
|
# workflow and the red run stayed on an older commit.
|
|
- "requirements.txt"
|
|
- "meta/requirements.txt"
|
|
- ".github/workflows/python-tests.yml"
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "python_pkg/lichess_bot/**"
|
|
- "python_pkg/**"
|
|
- "tests/**"
|
|
- "linux_configuration/scripts/periodic_background/system-maintenance/bin/**"
|
|
- "linux_configuration/tests/**"
|
|
# Both spellings: the root requirements.txt is a SYMLINK into meta/,
|
|
# and GitHub matches path filters against the changed path as git
|
|
# records it. Editing meta/requirements.txt therefore did NOT match
|
|
# "requirements.txt", so a dependency fix silently skipped this
|
|
# workflow and the red run stayed on an older commit.
|
|
- "requirements.txt"
|
|
- "meta/requirements.txt"
|
|
- ".github/workflows/python-tests.yml"
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Install system dependencies
|
|
run: |
|
|
set -euo pipefail
|
|
sudo apt-get update && sudo apt-get install -y librsvg2-bin
|
|
rsvg-convert --version
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
- name: Run pytest with coverage
|
|
run: pytest --cov=python_pkg --cov-branch --cov-report=term-missing --cov-fail-under=100
|