-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (57 loc) · 1.5 KB
/
pr_checks.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Pull Request Checks
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
- name: 'Setup Python Env'
uses: ./.github/actions/setup-python
with:
python-version: '3.x'
- name: 'Setup Node Env'
uses: ./.github/actions/setup-node
with:
node-version: '20.x'
lint_py:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-python
with:
python-version: '3.x'
- name: 'Ruff Check'
run: |
ruff check --output-format=github
lint_js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
with:
node-version: '20.x'
- name: 'Check JS Formatting'
working-directory: ./st_link_analysis/frontend/
run: |
npm run format
- name: 'Check JS Linting'
working-directory: ./st_link_analysis/frontend/
run: |
npm run lint
test:
needs: [lint_py, lint_js]
runs-on: ubuntu-latest
strategy:
matrix:
PY_VERSION: ["3.9", "3.10","3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.PY_VERSION }}
- uses: ./.github/actions/setup-node
with:
node-version: '20.x'
- run: |
pytest