Skip to content

Commit d9f9041

Browse files
committed
feat: test.yml to support test on diff python versions
1 parent 5704fd4 commit d9f9041

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: .github/workflows/test.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,18 @@ on:
1010
jobs:
1111
test:
1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8", "3.7", "3.6"]
1316
steps:
1417
- name: Checkout
1518
uses: actions/checkout@v4
16-
- name: Set up Python 3.12
19+
20+
- name: Set up Python ${{ matrix.python-version }}
1721
uses: actions/setup-python@v5
1822
with:
19-
python-version: "3.12"
23+
python-version: ${{ matrix.python-version }}
24+
2025
- name: Install dependencies
2126
run: |
2227
python -m pip install --upgrade pip

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tests/__pycache__
88
coverage.xml
99
__pycache__
1010
venv
11+
.venv
1112
result.txt
1213
testing/main.c
1314
*/*compile_commands.json

0 commit comments

Comments
 (0)