The workflow sat at `recognization/.github/workflows/`, but Actions only reads `.github/workflows` at the repository root, so it never ran. Moved unchanged; it already sets `working-directory: recognization`. Verified locally with the same command the workflow runs: `python -m unittest discover -s code -p 'test_*.py'` - 255 tests, OK, 2 real-model skips.
24 lines
558 B
YAML
24 lines
558 B
YAML
name: tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
model-free:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: recognization
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- name: Install pinned dependencies
|
|
run: python -m pip install -r requirements.lock
|
|
- name: Model-free suite
|
|
env:
|
|
YOLO_OFFLINE: "1"
|
|
YOLO_AUTOINSTALL: "false"
|
|
run: python -m unittest discover -s code -p 'test_*.py' -v
|