-
Notifications
You must be signed in to change notification settings - Fork 20
executable file
·54 lines (44 loc) · 1.19 KB
/
integration-looker-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
name: Looker Integration CI
on:
pull_request:
paths:
- "grai-integrations/source-looker/**"
- ".github/workflows/integration-looker-ci.yml"
env:
py_ver: "3.10"
poetry_ver: "1.3.2"
project_dir: "grai-integrations/source-looker"
jobs:
lint-integration-looker:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.project_dir }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "${{ env.py_ver }}"
- run: pip install black isort
- run: |
black . --check
isort . --profile black
tests-integration-looker:
needs: lint-integration-looker
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.project_dir }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "${{ env.py_ver }}"
- uses: abatilo/actions-poetry@v2
with:
poetry-version: "${{ env.poetry_ver }}"
- run: poetry install
- run: poetry run pytest