From 2397487e53105f7c90c670abb6b461ed118c184f Mon Sep 17 00:00:00 2001 From: Nicholas Karlson Date: Mon, 10 Nov 2025 16:46:47 -0800 Subject: [PATCH] ci: run lint and tests; consume requirements-dev.txt when present --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6162fd..601f78e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,14 @@ jobs: - name: Install deps run: | python -m pip install --upgrade pip - pip install -r requirements.txt || echo "No requirements.txt; skipping" - pip install numpy pandas statsmodels matplotlib scipy + if [ -f requirements.txt ]; then pip install -r requirements.txt; else pip install numpy pandas statsmodels matplotlib scipy; fi + if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi + + - name: Lint + run: make lint + + - name: Tests + run: make test - name: Tiny Chapter 13 smoke run: make ch13-ci