-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.21 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Python package
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
first_build:
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }}; first build)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest'] # In first build we only test 1 os
python-version: ['3.11'] # In first build we only test 1 python version
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-test-and-build
with:
python-version: ${{ matrix.python-version }}
other_builds:
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
needs: first_build
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
python-version: [ '3.9', '3.11' ] # Only first and last supported versions
exclude:
# already tested in first_build job
- python-version: 3.11
os: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-test-and-build
with:
python-version: ${{ matrix.python-version }}