File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,21 +19,17 @@ jobs:
1919 uses : actions/setup-python@v2
2020 with :
2121 python-version : ${{ matrix.python-version }}
22- - name : Cache venv
22+ - name : Cache pip
2323 uses : actions/cache@v2
2424 with :
25- path : venv
25+ path : ~/.cache/pip
2626 key : ${{ matrix.python-version }}-poetry-${{ hashFiles('pyproject.toml') }}
2727 - name : Install dependencies
2828 run : |
29- python -m venv venv
30- . venv/bin/activate
3129 python -m pip install --upgrade pip poetry
3230 poetry install
3331 - name : Test with pytest
34- run : |
35- . venv/bin/activate
36- pytest
32+ run : pytest
3733 - name : Upload coverage to Codecov
3834 uses : codecov/codecov-action@v1
3935 with :
@@ -48,18 +44,13 @@ jobs:
4844 - uses : actions/checkout@v2
4945 - uses : actions/setup-python@v2
5046 with :
51- python-version : 3.7
52- - name : Cache venv
47+ python-version : 3.8
48+ - name : Cache pip
5349 uses : actions/cache@v2
5450 with :
55- path : venv
51+ path : ~/.cache/pip
5652 key : lintenv-v2
5753 - name : Install dependencies
58- run : |
59- python -m venv venv
60- . venv/bin/activate
61- python -m pip install --upgrade pip black
54+ run : python -m pip install --upgrade pip black
6255 - name : Black test
63- run : |
64- . venv/bin/activate
65- black --check .
56+ run : black --check .
You can’t perform that action at this time.
0 commit comments