File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v3
10
- - name : Install poetry
11
- run : pipx install poetry
12
10
- uses : actions/setup-python@v4
11
+ id : setup-python
13
12
with :
14
13
python-version : " 3.11"
15
- cache : " poetry"
14
+ - name : Install poetry
15
+ run : pipx install poetry
16
+ - uses : actions/cache@v3
17
+ with :
18
+ path : .venv
19
+ key : poetry-${{ steps.setup-python.outputs.python-version}}-${{ hashFiles('poetry.lock') }}
16
20
- name : Install dependencies
17
- run : poetry install
21
+ run : make install
18
22
- run : bin/lint.sh
19
23
run_test :
20
24
runs-on : ubuntu-latest
21
25
steps :
22
26
- uses : actions/checkout@v3
23
- - name : Install poetry
24
- run : pipx install poetry
25
27
- uses : actions/setup-python@v4
28
+ id : setup-python
26
29
with :
27
30
python-version : " 3.11"
28
- cache : " poetry"
31
+ - name : Install poetry
32
+ run : pipx install poetry
33
+ - uses : actions/cache@v3
34
+ with :
35
+ path : .venv
36
+ key : poetry-${{ steps.setup-python.outputs.python-version}}-${{ hashFiles('poetry.lock') }}
29
37
- name : Install dependencies
30
- run : poetry install
38
+ run : make install
31
39
- name : Run tests
32
40
run : bin/test.sh
33
41
review-dependabot-pr :
Original file line number Diff line number Diff line change @@ -33,8 +33,10 @@ clean:
33
33
find . -name " __pycache__" | xargs rm -rf
34
34
rm -rf .mypy_cache .pytest_cache .coverage .venv
35
35
36
+ $(VENV ) /bin/python :
37
+ python3 -m venv $(VENV )
36
38
37
- install : $(INSTALL_STAMP )
39
+ install : $(VENV ) /bin/python $( INSTALL_STAMP )
38
40
$(INSTALL_STAMP ) : poetry.lock
39
41
@if [ -z $( shell command -v poetry 2> /dev/null) ]; then echo " Poetry could not be found. See https://python-poetry.org/docs/" ; exit 2; fi
40
42
POETRY_VIRTUALENVS_IN_PROJECT=1 poetry install --with dev --no-root
You can’t perform that action at this time.
0 commit comments