forked from BasPH/data-pipelines-with-apache-airflow
-
Notifications
You must be signed in to change notification settings - Fork 2
26 lines (22 loc) · 909 Bytes
/
ci.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
# https://help.github.com/en/github/automating-your-workflow-with-github-actions
# https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
name: CI
on: [push]
# push:
# paths:
# - "*.py"
jobs:
precommit:
name: Pre-commit
runs-on: ubuntu-18.04 # https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- uses: actions/checkout@v1 # https://help.github.com/en/github/automating-your-workflow-with-github-actions/configuring-a-workflow#using-the-checkout-action
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.7
architecture: x64
- name: Install pre-commit
run: pip install pre-commit==2.7.1
- name: Run pre-commit
run: pre-commit run --all