-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (39 loc) · 1.15 KB
/
publish.yaml
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: Whylabs Package Workflow
on:
push:
branches: ["mainline"]
pull_request:
branches: ["*"]
jobs:
build:
name: Run lints and tests on PRs and merges
timeout-minutes: 10
runs-on: ubuntu-latest
environment: whylabs-toolkit-ci
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.8.15"
- uses: Gr1N/setup-poetry@v9
name: Install poetry
with:
poetry-version: 1.2.2
- name: Install python dependencies
run: make setup
- name: Check types
run: make lint
- name: Check formatting
run: make format
- name: Run test
run: make test
env:
ORG_ID : ${{ secrets.ORG_ID }}
DATASET_ID : ${{ secrets.DATASET_ID }}
WHYLABS_API_KEY : ${{ secrets.WHYLABS_API_KEY }}
MONITOR_ID : ${{ secrets.MONITOR_ID }}
ANALYZER_ID : ${{ secrets.ANALYZER_ID }}
DEV_WHYLABS_API_KEY: ${{secrets.DEV_WHYLABS_API_KEY}}
DEV_ORG_ID: ${{secrets.DEV_ORG_ID}}
DEV_DATASET_ID: ${{secrets.DEV_DATASET_ID}}