forked from SEKOIA-IO/intake-formats
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 908 Bytes
/
test_linting.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
name: Check linting
on: push
defaults:
run:
working-directory: utils
jobs:
test_linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v3
id: setup-python
with:
python-version: "3.10"
- name: Install Poetry
run: |
pip install poetry
poetry config virtualenvs.in-project true
- name: Install dependencies
run: |
poetry install
- name: Execute tests
run: |
poetry run python linter.py check --changes
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
run: npm install -g prettier
- name: Run
working-directory: .
run: |
npx prettier --check ./**/parser.yml