-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (53 loc) · 1.84 KB
/
pull_request.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
on: pull_request
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
license-check:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Ruby 2.x
uses: ruby/setup-ruby@v1
with:
ruby-version: 2
- name: Install license finder
run: gem install license_finder
- name: Allow gevent Zope license
run: license_finder permitted_licenses add "Zope Public License"
- name: Setup python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install apt dependencies
run: sudo apt-get update -y && sudo apt-get install -y python3-dev openssl libssl-dev gcc pkg-config libffi-dev libxml2-dev libxmlsec1-dev
- name: Install dependencies
run: pip install -r piptools_requirements3.txt && pip install -r requirements3.txt
- name: Run license finder
run: license_finder
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install apt dependencies
run: sudo apt-get update -y && sudo apt-get install -y python3-dev openssl libssl-dev gcc pkg-config libffi-dev libxml2-dev libxmlsec1-dev
- name: Install dependencies
run: pip install -r piptools_requirements3.txt && pip install -r requirements3.txt
- name: Run tests
run: make test