diff .github/workflows/ci-test.yml @ 8592:363a6bb5a6ae default tip

test: add subtest support to testTokenlessCsrfProtection Make each list driven test case a subtest of its own. Add pytest-subtest pip module to make this work.
author John Rouillard <rouilj@ieee.org>
date Tue, 21 Apr 2026 12:55:19 -0400
parents e920db4d00d3
children
line wrap: on
line diff
--- a/.github/workflows/ci-test.yml	Mon Apr 20 23:56:15 2026 -0400
+++ b/.github/workflows/ci-test.yml	Tue Apr 21 12:55:19 2026 -0400
@@ -147,9 +147,10 @@
         run: python -m pip install --upgrade pip
 
       # note pytest-env is not needed for redis password as there is
-      # no password on CI's redis.
+      # no password on CI's redis. pytest-subtests isn't needed with
+      # pytest 9.0.0+, but 9.0 only supports 3.10+ so include for 3.7+.
       - name: Install pytest and other packages needed for running tests
-        run: pip install flake8 hypothesis mock pytest pytest-cov requests sphinx-tabs
+        run: pip install flake8 hypothesis mock pytest pytest-cov pytest-subtests requests sphinx-tabs
 
       # https://github.com/mxschmitt/action-tmate
       # allow remote ssh into the CI container. I need this to debug

Roundup Issue Tracker: http://roundup-tracker.org/