Skip to content

Commit 0044921

Browse files
committed
Run build/test pipeline with two different Python versions
1 parent ea91573 commit 0044921

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.8", "3.12"]
1417
steps:
1518

1619
- name: Checkout Repository
1720
uses: actions/checkout@v4
1821

19-
- name: Set up Python 3.11
22+
- name: Set up Python ${{ matrix.python-version }}
2023
uses: actions/setup-python@v5
2124
with:
22-
python-version: 3.11
25+
python-version: ${{ matrix.python-version }}
2326

2427
- name: Run build
2528
run: |
@@ -38,8 +41,10 @@ jobs:
3841
ref: main
3942
path: main
4043
token: ${{ secrets.GITHUB_TOKEN }}
44+
if: ${{ matrix.python-version == 3.12 }}
4145

4246
- name: Push to main
47+
if: ${{ matrix.python-version == 3.12 }}
4348
run: |
4449
cp -R target/* main
4550
cd main

0 commit comments

Comments
 (0)