From 8381e901c60a9f5867ec2dd7cc37b52467922cfe Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 14 May 2024 13:43:15 +0100 Subject: [PATCH] actions: Integrate tox-gh-actions We were not running click 7.x and asyncclick tests. Address this. Signed-off-by: Stephen Finucane --- .github/workflows/ci.yaml | 5 ++--- tox.ini | 8 ++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3d5294a..f6e9c12 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,10 +35,9 @@ jobs: with: python-version: ${{ matrix.python }} - name: Install dependencies - run: python -m pip install tox + run: python -m pip install tox tox-gh-actions - name: Run unit tests (via tox) - # Run tox using the version of Python in `PATH` - run: tox -e py + run: tox docs: name: Build docs runs-on: ubuntu-latest diff --git a/tox.ini b/tox.ini index 85a4fcc..0085d4c 100644 --- a/tox.ini +++ b/tox.ini @@ -36,5 +36,13 @@ commands = commands = sphinx-build -Wn -b html -d docs/_build/doctrees docs docs/_build/html +[gh-actions] +python = + 3.8: py38 + 3.9: py39 + 3.10: py310 + 3.11: py311 + 3.12: py312 + [coverage:run] branch = True