-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 924 Bytes
/
python-test.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
name: Test
on:
push:
branches:
- master
env:
USE_SYSTEM_PYTHON: 3
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: setup python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: pip caching
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Test
run: |
./black.sh
./flake8.sh
./isort.sh
./mypy.sh
./pytest.sh