-
Notifications
You must be signed in to change notification settings - Fork 50
39 lines (39 loc) · 1001 Bytes
/
data-pipeline-ci.yml
File metadata and controls
39 lines (39 loc) · 1001 Bytes
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
name: Data Pipeline CI
on:
push:
branches:
- main
paths:
- 'data-pipeline/**'
pull_request:
paths:
- 'data-pipeline/**'
- '.github/workflows/**'
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Use pip cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
pip-
- name: Install dependencies
run: |
pip install wheel
pip install -r data-pipeline/requirements.txt
- name: Check formatting
run: black --check data-pipeline/src/data_pipeline
- name: Run Ruff
run: ruff check data-pipeline/src/data_pipeline
- name: Run Pyright
run: pyright --project data-pipeline