Skip to content

Commit d77313d

Browse files
authored
ci: Add python multi-version test workflow (#375)
* ci: Add python multi-version test workflow Signed-off-by: Mounil <[email protected]> * ci: update changelog with the changes made in test.yml Signed-off-by: Mounil <[email protected]> * ci: Update test.yml with Python 3.10–3.12 matrix Signed-off-by: Mounil <[email protected]> --------- Signed-off-by: Mounil <[email protected]>
1 parent 96c4232 commit d77313d

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010
jobs:
1111
build-and-test:
1212
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ["3.10", "3.11", "3.12"]
18+
1319
steps:
1420
- name: Harden the runner (Audit all outbound calls)
1521
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
@@ -19,15 +25,18 @@ jobs:
1925
- name: Checkout repository
2026
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2127

28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
cache: 'pip'
33+
2234
- name: Install uv
2335
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0
2436

2537
- name: Install setuptools wheel
2638
run: pip install --upgrade pip setuptools wheel
2739

28-
- name: Setup Python
29-
run: uv python install
30-
3140
- name: Install dependencies
3241
run: uv sync --all-extras --dev
3342

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
5050
- Update grpcio dependency from 1.68.1 to 1.71.2
5151
- Updated `rebasing.md` with clarification on using `git reset --soft HEAD~<n>` where `<n>` specifies the number of commits to rewind.
5252
- Calls in examples for PrivateKey.from_string_ed25519(os.getenv('OPERATOR_KEY')) to PrivateKey.from_string(os.getenv('OPERATOR_KEY')) to enable general key types
53+
- Add CI tests across Python 3.10–3.12.
5354

5455
### Fixed
5556
- Unit test compatibility issues when running with UV package manager

0 commit comments

Comments
 (0)