-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (42 loc) · 1.22 KB
/
pull-request.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
name: Validate Pull Request
on: [pull_request]
jobs:
check-license:
uses: ./.github/workflows/check-license.yml
test-code:
# check-license is quick and we want to abort quickly if that fails
needs: check-license
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
# os: [ubuntu-20.04, macos-latest]
python-version: [3.7, "3.10", "3.11"]
exclude:
- os: macos-latest
python-version: "3.7"
env:
ZEFHUB_AUTH_KEY: "GUEST"
steps:
########
# Git things
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: true
# TODO: Update this to check via building the wheel rather than a local build
- name: Build
uses: ./.github/actions/build
# Windows takes forever to build so this needs to be >20min
timeout-minutes: 45
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
all-passed:
name: All PR tests passed
needs: test-code
runs-on: ubuntu-20.04
steps:
- name: dummy
run: |
echo Nothing to see here