@@ -61,18 +61,18 @@ jobs:
61
61
# changed, we create a cache key that is a composite of those states.
62
62
#
63
63
# Only when the context is exactly the same, we will restore the cache.
64
- - name : Python Dependency Caching
65
- uses : actions/cache@v2
66
- id : python_cache
67
- with :
68
- path : ${{ env.PYTHONUSERBASE }}
69
- key : " python-0-${{ runner.os }}-${{ env.PYTHONUSERBASE }}-\
70
- ${{ steps.python.outputs.python-version }}-\
71
- ${{ hashFiles('./pyproject.toml', './poetry.lock') }}"
64
+ # - name: Python Dependency Caching
65
+ # uses: actions/cache@v2
66
+ # id: python_cache
67
+ # with:
68
+ # path: ${{ env.PYTHONUSERBASE }}
69
+ # key: "python-0-${{ runner.os }}-${{ env.PYTHONUSERBASE }}-\
70
+ # ${{ steps.python.outputs.python-version }}-\
71
+ # ${{ hashFiles('./pyproject.toml', './poetry.lock') }}"
72
72
73
73
# Install our dependencies if we did not restore a dependency cache
74
74
- name : Install dependencies using poetry
75
- if : steps.python_cache.outputs.cache-hit != 'true'
75
+ # if: steps.python_cache.outputs.cache-hit != 'true'
76
76
run : |
77
77
pip install poetry
78
78
poetry install --no-interaction --no-ansi
@@ -93,14 +93,14 @@ jobs:
93
93
# we set PIP_USER=0 to not do a user install.
94
94
- name : Run pre-commit hooks
95
95
id : pre-commit
96
- run : export PIP_USER=0; SKIP="no-commit-to-branch,black,flake8" pre-commit run --all-files
96
+ run : export PIP_USER=0; SKIP="no-commit-to-branch,black,flake8" poetry run pre-commit run --all-files
97
97
98
98
# Run black seperately as we don't want to reformat the files
99
99
# just error if something isn't formatted correctly.
100
100
- name : Check files with black
101
101
id : black
102
102
if : always() && (steps.pre-commit.outcome == 'success' || steps.pre-commit.outcome == 'failure')
103
- run : black . --check --diff --color
103
+ run : poetry run black . --check --diff --color
104
104
105
105
# Run flake8 and have it format the linting errors in the format of
106
106
# the GitHub Workflow command to register error annotations. This
@@ -113,7 +113,7 @@ jobs:
113
113
- name : Run flake8
114
114
id : flake8
115
115
if : always() && (steps.pre-commit.outcome == 'success' || steps.pre-commit.outcome == 'failure')
116
- run : " flake8 \
116
+ run : " poetry run flake8 \
117
117
--format='::error file=%(path)s,line=%(row)d,col=%(col)d::\
118
118
[flake8] %(code)s: %(text)s'"
119
119
0 commit comments