-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (39 loc) · 954 Bytes
/
config.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
name: 'Configuration Check'
on:
pull_request:
paths:
- 'Cargo.toml'
- 'Cargo.lock'
- 'conf/*.toml'
- 'docs/*.md'
- 'src/**/*'
- 'scripts/*'
- '.github/workflows/config.yaml'
push:
branches:
- develop
- prod
jobs:
conf_check:
name: Configurations
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Pip Cache
uses: actions/cache@v2
with:
path: |
~/.cache/pip
key: ${{ runner.os }}-python-${{ hashFiles('scripts/*-requirements.txt') }}
- name: Run Check
run: |
# Dependencies
python -m pip install --upgrade pip
pip install -r scripts/check_conf-requirements.txt
# Scripts
python scripts/check_conf.py