-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (57 loc) · 1.38 KB
/
test.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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: build-test
on:
pull_request:
push:
branches:
- master
- develop
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-11
- macos-12
python-version:
- '3.12'
- '3.11'
- '3.10'
- '3.9'
- 'pypy-3.7'
- 'pypy-3.8'
with-venv:
- 'true'
- 'false'
with-homebrew:
- 'true'
- 'false'
steps:
- uses: actions/checkout@v3
- uses: ./
if: |
!(matrix.with-homebrew == 'true' && runner.os != 'macOS' ||
matrix.with-homebrew == 'true' && runner.os == 'macOS' &&
(startswith(matrix.python-version, 'pypy-') ||
contains(matrix.python-version, '-rc') ||
contains(matrix.python-version, '-b')
)
)
with:
python-version: ${{ matrix.python-version }}
homebrew-python: ${{ matrix.with-homebrew }}
with-venv: ${{ matrix.with-venv }}
pyb-args: '--version'
test-summary:
if: success() || failure()
runs-on: ubuntu-latest
name: Test Summary
needs: test
steps:
- name: Check matrix status
if: needs.test.result != 'success'
run: exit 1