Skip to content

Commit 4b69a9a

Browse files
committed
Update build matrix for Python 3.12
1 parent 0e51b2f commit 4b69a9a

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Test/build
22

3-
on: [push, pull_request]
3+
on:
4+
workflow_dispatch: # Allows manual triggering
5+
push: # only build on pusheess to the main branch
6+
branches:
7+
- master
8+
pull_request:
49

510
jobs:
611
build:
@@ -9,8 +14,18 @@ jobs:
914
max-parallel: 4
1015
fail-fast: false
1116
matrix:
12-
python-version: [3.8, 3.9, '3.10', 3.11]
17+
python-version: [3.11, 3.12]
1318
platform: [ubuntu-latest, macos-latest, windows-latest]
19+
# The include below adds jobs on older versions of python,
20+
# but just on one platform. Windows is probably the most widely
21+
# used for vpython, so test on that.
22+
include:
23+
- python-version: "3.8"
24+
platform: windows-latest
25+
- python-version: "3.9"
26+
platform: windows-latest
27+
- python-version: "3.10"
28+
platform: windows-latest
1429
runs-on: ${{ matrix.platform }}
1530

1631
steps:

0 commit comments

Comments
 (0)