Skip to content

Commit 2cff2e8

Browse files
authored
Merge pull request #54 from Qiskit/fix-workflow
Fix CI after extending Python versions
2 parents 731273a + 2616e14 commit 2cff2e8

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/test_latest_versions.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
max-parallel: 4
2121
matrix:
2222
os: [ubuntu-latest]
23-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
23+
python-version: ['3.10', '3.11', '3.12', '3.13']
2424
include:
2525
- os: macos-latest
2626
python-version: 3.11
@@ -36,12 +36,16 @@ jobs:
3636
run: |
3737
python -m pip install --upgrade pip
3838
pip install tox
39+
- uses: actions/cache@v4
40+
with:
41+
path: ~/.cache/pip
42+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
43+
restore-keys: |
44+
${{ runner.os }}-pip-
3945
- name: Modify tox.ini for more thorough check
4046
shell: bash
4147
run: |
4248
sed -i.bak -E '/#.*CI:[[:space:]]*skip-next-line/I{N;d;}' tox.ini
4349
cat tox.ini
44-
- name: Set tox environment name
45-
run: echo "TOXENV=py${{ matrix.python-version // '.' }}" >> $GITHUB_ENV
4650
- name: Test using tox environment
47-
run: tox -e $TOXENV
51+
run: tox -e py${{ matrix.python-version }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20macOS%20%7C%20Windows-informational)
2-
[![Python](https://img.shields.io/badge/Python-3.9%20|%203.10%20|%203.11%20|%203.12%20|%203.13-informational)](https://www.python.org/)
2+
[![Python](https://img.shields.io/badge/Python-3.10--3.13-informational)](https://www.python.org/)
33
[![Qiskit](https://img.shields.io/badge/Qiskit-%E2%89%A5%201.0.0-6133BD)](https://github.com/Qiskit/qiskit)
44
[![License](https://img.shields.io/github/license/qiskit-community/quantum-prototype-template?label=License)](https://github.com/qiskit-community/quantum-prototype-template/blob/main/LICENSE.txt)
55
[![Code style: Black](https://img.shields.io/badge/Code%20style-Black-000.svg)](https://github.com/psf/black)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
certifi>=2021.5.30
22
importlib_metadata>=4.8.1
3-
qiskit_serverless>=0.23.0, <0.24.0
3+
qiskit_serverless~=0.23.0

0 commit comments

Comments
 (0)