forked from Netflix/metaflow
-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (44 loc) · 1.11 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
name: Test
on:
push:
branches:
- master
- feature/kfp
- feature/aip
- feature/kfp-argo
pull_request:
branches:
- master
- feature/kfp
- feature/aip
- feature/kfp-argo
- tz/AIP-7418-remove-create
- tz/AIP-7773-argo-ftf
workflow_call:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
Python:
name: core / Python ${{ matrix.ver }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ver: ['3.9']
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.ver }}
- name: Install Python ${{ matrix.ver }} dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install tox==3.25.1 numpy black==21.12b "click<8.1.0"
- name: Python Code Format Check
run: black --target-version py39 --diff --check ./metaflow/plugins/aip/*.py