-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1006 Bytes
/
databricks-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
name: Databricks CI
on:
# pull_request:
# branches:
# - main
workflow_dispatch:
jobs:
databricks-ci:
runs-on: ubuntu-latest
name: Databricks static and unit test
steps:
# https://github.com/marketplace/actions/skip-duplicate-actions
- name: Skip check
id: skip_check
uses: fkirc/skip-duplicate-actions@v1.4.0
with:
github_token: ${{ github.token }}
paths: '["**.py"]'
- name: Checkout
if: ${{ steps.skip_check.outputs.should_skip == 'false' }}
uses: actions/checkout@v2
# https://github.com/TrueBrain/actions-flake8
- name: Static checks
if: ${{ steps.skip_check.outputs.should_skip == 'false' }}
uses: TrueBrain/actions-flake8@master
with:
path: ./src/python/src
ignore: E501,F401,E402,W503
- name: Unit tests
if: ${{ steps.skip_check.outputs.should_skip == 'false' }}
uses: ./.github/actions/databricks-unit-test