File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1515 uses : actions/setup-python@v1
1616 with :
1717 python-version : 3.7
18+
19+ - name : Install Poetry
20+ uses : dschep/install-poetry-action@v1.3
21+
22+ - name : Cache Poetry virtualenv
23+ uses : actions/cache@v1
24+ id : cache
25+ with :
26+ path : ~/.virtualenvs
27+ key : poetry-${{ hashFiles('**/poetry.lock') }}
28+ restore-keys : |
29+ poetry-${{ hashFiles('**/poetry.lock') }}
30+
31+ - name : Set Poetry config
32+ run : |
33+ poetry config settings.virtualenvs.in-project false
34+ poetry config settings.virtualenvs.path ~/.virtualenvs
35+
36+ - name : Install Dependencies
37+ run : poetry install
38+ if : steps.cache.outputs.cache-hit != 'true'
39+
40+ - name : Code Quality
41+ run : poetry run black . --check
42+
43+ - name : Test with pytest
44+ run : poetry run pytest --cov-report term-missing --cov=labthings ./tests
You can’t perform that action at this time.
0 commit comments