Skip to content

Commit 89e7a86

Browse files
Merge pull request #167 from Quantum-Software-Development/FabianaCampanari-patch-1
Create python-package.yml
2 parents 96d420b + 85edd51 commit 89e7a86

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflow/python-package.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Using multiple Python versions with matrix.
2+
3+
name: Python package
4+
5+
on: [push]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
# You can test your matrix by printing the current Python version
22+
- name: Display Python version
23+
run: python -c "import sys; print(sys.version)"
24+
2\

0 commit comments

Comments
 (0)