Mercurial > p > roundup > code
comparison .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 |
comparison
equal
deleted
inserted
replaced
| 8591:501eb8088ea3 | 8592:363a6bb5a6ae |
|---|---|
| 145 echo "PYTHON_GIL=0" >> "$GITHUB_ENV" | 145 echo "PYTHON_GIL=0" >> "$GITHUB_ENV" |
| 146 - name: Update pip | 146 - name: Update pip |
| 147 run: python -m pip install --upgrade pip | 147 run: python -m pip install --upgrade pip |
| 148 | 148 |
| 149 # note pytest-env is not needed for redis password as there is | 149 # note pytest-env is not needed for redis password as there is |
| 150 # no password on CI's redis. | 150 # no password on CI's redis. pytest-subtests isn't needed with |
| 151 # pytest 9.0.0+, but 9.0 only supports 3.10+ so include for 3.7+. | |
| 151 - name: Install pytest and other packages needed for running tests | 152 - name: Install pytest and other packages needed for running tests |
| 152 run: pip install flake8 hypothesis mock pytest pytest-cov requests sphinx-tabs | 153 run: pip install flake8 hypothesis mock pytest pytest-cov pytest-subtests requests sphinx-tabs |
| 153 | 154 |
| 154 # https://github.com/mxschmitt/action-tmate | 155 # https://github.com/mxschmitt/action-tmate |
| 155 # allow remote ssh into the CI container. I need this to debug | 156 # allow remote ssh into the CI container. I need this to debug |
| 156 # some xfail cases | 157 # some xfail cases |
| 157 - name: Setup tmate session | 158 - name: Setup tmate session |
