File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : test
2
2
3
- on : [push, pull_request]
3
+ on : [push, pull_request, workflow_dispatch ]
4
4
5
5
jobs :
6
6
build :
@@ -21,22 +21,21 @@ jobs:
21
21
curl -sSL \
22
22
"https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py" | python
23
23
24
+ # Adding `poetry` to `$PATH`:
25
+ echo "$HOME/.poetry/bin" >> $GITHUB_PATH
26
+
24
27
- name : Set up cache
25
28
uses : actions/cache@v1
26
29
with :
27
30
path : .venv
28
31
key : venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
29
32
- name : Install dependencies
30
33
run : |
31
- source "$HOME/.poetry/env"
32
-
33
34
poetry config virtualenvs.in-project true
34
35
poetry install
35
36
36
37
- name : Run tests
37
38
run : |
38
- source "$HOME/.poetry/env"
39
-
40
39
poetry run flake8 .
41
40
poetry run mypy returns ./tests/**/*.py
42
41
# Different python versions are covered differently:
You can’t perform that action at this time.
0 commit comments