-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (57 loc) · 1.68 KB
/
ci.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
58
59
60
61
name: CI
on:
workflow_dispatch:
inputs:
ref-template:
description: 'Branch or tag ref to check out for template'
type: string
required: false
ref-zenml:
description: 'Branch or tag ref to check out for ZenML'
type: string
required: false
workflow_call:
inputs:
ref-template:
description: 'Branch or tag ref to check out for template'
type: string
required: false
ref-zenml:
description: 'Branch or tag ref to check out for ZenML'
type: string
required: false
push:
branches: ["main", "develop"]
paths-ignore: ["README.md"]
pull_request:
paths-ignore: ["README.md"]
concurrency:
# New commit on branch cancels running workflows of the same branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
stack-name: [local]
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
env:
ZENML_DEBUG: true
ZENML_ANALYTICS_OPT_IN: false
ZENML_LOGGING_VERBOSITY: INFO
# fork fix for macos
OBJC_DISABLE_INITIALIZE_FORK_SAFETY: YES
UV_HTTP_TIMEOUT: '1500'
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Run tests
uses: ./.github/actions/e2e_template_test
with:
stack-name: ${{ matrix.stack-name }}
python-version: ${{ matrix.python-version }}
ref-zenml: ${{ inputs.ref-zenml || 'develop' }}
ref-template: ${{ inputs.ref-template || github.ref }}