@@ -22,11 +22,13 @@ jobs:
2222 with :
2323 python-version : ${{ matrix.python-version }}
2424 - uses : actions/cache@v3
25+ id : pip-cache
2526 with :
2627 path : ~/.cache/pip
2728 key : ${{ runner.os }}-pip
28- - run : python -m pip install pyflakes==2.4.0
29- - run : python -m pip install black pylama[all]
29+ - name : Install dependencies
30+ if : steps.pip-cache.outputs.cache-hit != 'true'
31+ run : python -m pip install pyflakes==2.4.0 black pylama[all]
3032 - run : |
3133 black . --check
3234 pylama -l pyflakes,pycodestyle,isort
@@ -35,12 +37,13 @@ jobs:
3537 fail-fast : true
3638 matrix :
3739 os : ["ubuntu-latest", "macos-latest"]
38- python-version : ["3.10"]
40+ python-version : ["3.10.4", "3.10.5", "3.10.6 "]
3941 runs-on : ${{ matrix.os }}
4042 steps :
4143 - name : Check out repository
4244 uses : actions/checkout@v3
4345 - name : Set up python ${{ matrix.python-version }}
46+ id : setup-python
4447 uses : actions/setup-python@v4
4548 with :
4649 python-version : ${{ matrix.python-version }}
@@ -50,15 +53,14 @@ jobs:
5053 virtualenvs-create : true
5154 virtualenvs-in-project : true
5255 - name : Load cached venv
56+ id : cached-poetry-dependencies
5357 uses : actions/cache@v3
5458 with :
5559 path : .venv
5660 key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
5761 - name : Install dependencies
5862 if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
5963 run : poetry install --no-interaction --no-root
60- - name : Install library
61- run : poetry install --no-interaction
6264 - name : Run tests
6365 run : |
6466 source .venv/bin/activate
0 commit comments