File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+
7+ test :
8+ runs-on : ubuntu-latest
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ python : ["3.6", "3.7", "3.8"]
13+
14+ steps :
15+ - uses : actions/checkout@v2
16+ with :
17+ fetch-depth : 1
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@v1
21+ with :
22+ python-version : ${{ matrix.python }}
23+
24+ - name : Install Poetry
25+ uses : dschep/install-poetry-action@v1.2
26+
27+ - name : Cache Poetry virtualenv
28+ uses : actions/cache@v1
29+ id : cache
30+ with :
31+ path : ~/.virtualenvs
32+ key : poetry-${{ hashFiles('**/poetry.lock') }}
33+ restore-keys : |
34+ poetry-${{ hashFiles('**/poetry.lock') }}
35+
36+ - name : Set Poetry config
37+ run : |
38+ poetry config virtualenvs.in-project false
39+ poetry config virtualenvs.path ~/.virtualenvs
40+
41+ - name : Install Dependencies
42+ run : poetry install
43+ if : steps.cache.outputs.cache-hit != 'true'
44+
45+ - name : Code Quality
46+ run : poetry run black . -l 80 --check
You can’t perform that action at this time.
0 commit comments