Skip to content

Commit 2826028

Browse files
committed
Add python-version matrix to build.yml to test on 3.10, 3.11, 3.12
1 parent fad6751 commit 2826028

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,24 @@ on:
88

99
jobs:
1010
build:
11-
name: Build (${{ matrix.os }})
11+
name: Build (${{ matrix.os }}, Python ${{ matrix.python-version }})
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest]
16+
python-version: ["3.10", "3.11", "3.12"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up conda environment
22+
uses: conda-incubator/setup-miniconda@v3
23+
with:
24+
auto-activate-base: false
25+
activate-environment: s2t-env
26+
environment-file: environment.yml
27+
python-version: ${{ matrix.python-version }}
1628

17-
steps:
18-
- uses: actions/checkout@v4
19-
20-
- name: Set up conda environment
21-
uses: conda-incubator/setup-miniconda@v3
22-
with:
23-
auto-activate-base: false
24-
activate-environment: s2t-env
25-
environment-file: environment.yml
2629

2730
- name: Install Bazel
2831
shell: bash -l {0}

0 commit comments

Comments
 (0)