From 667169dca0cce0b74bd221f0cfab6259f432211a Mon Sep 17 00:00:00 2001 From: Frank Harkins Date: Fri, 19 Apr 2024 18:15:12 +0100 Subject: [PATCH] Change how we specify Python versions for testing (#1207) We currently test everything with Python 3.11, but this is a problem as not all writers have it available on their system. We also want to make sure our docs work with as many versions of Python as possible. This PR allows writers to test their docs with any version of Python, and sets CI to test with Python 3.8 (the minimum version that Qiskit supports). --- .github/actions/set-up-notebook-testing/action.yml | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/set-up-notebook-testing/action.yml b/.github/actions/set-up-notebook-testing/action.yml index 4ab4f6ad1e2..6bc6cd73a6b 100644 --- a/.github/actions/set-up-notebook-testing/action.yml +++ b/.github/actions/set-up-notebook-testing/action.yml @@ -28,7 +28,7 @@ runs: steps: - uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.8" cache: "pip" - name: Install Python packages diff --git a/tox.ini b/tox.ini index 176688add54..9bafbcd1168 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] min_version = 4.0 -env_list = py311 +env_list = py3 skipsdist = true [testenv]