-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (51 loc) · 1.52 KB
/
validate_pr.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: "Validate Pull Request"
on:
pull_request:
env:
python-version: 3.10.6
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
commits-messages:
timeout-minutes: 30
name: "Commits Messages"
runs-on: ubuntu-latest
steps:
- name: Check the code out
uses: actions/checkout@v3
- name: Check the commits message
uses: lumapps/commit-message-validator@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github-actions-validator:
name: "Github-actions-validator"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: lumapps/github-actions-validator@master
test-and-lint:
name: "Test and Lint Pull Request"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python ${{ env.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}
- name: Install CircleCI-specific dependencies
run: |
sudo apt update
sudo apt install -y libenchant-2-2 graphviz
- name: Install the project dependencies
run: make init
- name: Run the unit tests
run: |
source venv/bin/activate
make test
- name: Lint
run: make lint
- name: Check dependencies
run: |
source venv/bin/activate
PYTHONPATH=. python3 dep_check/main.py check dep_check