Skip to content

Commit 0f75fe1

Browse files
authored
New github actions structure (#658)
1 parent 21aae16 commit 0f75fe1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: test
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
build:
@@ -21,22 +21,21 @@ jobs:
2121
curl -sSL \
2222
"https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py" | python
2323
24+
# Adding `poetry` to `$PATH`:
25+
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
26+
2427
- name: Set up cache
2528
uses: actions/cache@v1
2629
with:
2730
path: .venv
2831
key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
2932
- name: Install dependencies
3033
run: |
31-
source "$HOME/.poetry/env"
32-
3334
poetry config virtualenvs.in-project true
3435
poetry install
3536
3637
- name: Run tests
3738
run: |
38-
source "$HOME/.poetry/env"
39-
4039
poetry run flake8 .
4140
poetry run mypy returns ./tests/**/*.py
4241
# Different python versions are covered differently:

0 commit comments

Comments
 (0)