-
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 998 Bytes
/
main.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
name: CI
on:
push:
branches: "*"
pull_request:
branches: "*"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/setup-python@v2.3.0
- uses: pre-commit/action@v2.0.3
test:
name: ${{ matrix.python-version }}-build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2.4.0
- name: Setup Python
uses: actions/setup-python@v2.3.0
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- uses: actions/cache@v2.1.7
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/dev-requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: |
python -m pip install -r dev-requirements.txt
python -m pip list
- name: Running Tests
run: |
python -m pytest --verbose