-
-
Notifications
You must be signed in to change notification settings - Fork 10
35 lines (33 loc) · 977 Bytes
/
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
name: Linting
on:
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
push:
branches: [main]
workflow_dispatch:
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
cache-dependency-path: 'webclient/package.json'
- name: Install node dependencies
run: |
npm install -g openapi-format
npm install --prefix webclient
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'requirements*.txt'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r data/requirements.txt -r requirements-dev.txt -r server/main-api/test/requirements.txt
- name: Run pre-commit
uses: pre-commit/[email protected]