-
Notifications
You must be signed in to change notification settings - Fork 7
30 lines (30 loc) · 900 Bytes
/
ci.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
name: ci
on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
- name: Install dependencies
run: pip install -r dev-requirements.txt && pip install -r requirements.txt
- name: Run linter
run: pylint -E perimeterx/
unit-test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [ "3.6", "3.8", "3.x" ]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install -r dev-requirements.txt && pip install -r requirements.txt
- name: Run unit tests
run: python -m unittest discover -s ./test -p 'test*'