File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 8
8
publish :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
+ - name : Set PATH
12
+ run : echo "${HOME}/.local/bin" >> $GITHUB_PATH
13
+
11
14
- uses : actions/checkout@v2
12
15
- name : Set up Python
13
16
uses : actions/setup-python@v2
@@ -16,20 +19,20 @@ jobs:
16
19
- name : Install dependencies
17
20
run : |
18
21
curl -sSL https://install.python-poetry.org | python - --version 1.2.1
19
- $HOME/.local/bin/ poetry install
22
+ poetry install
20
23
21
24
- name : Run tests
22
25
run : |
23
- $HOME/.local/bin/ poetry run pytest
26
+ poetry run pytest
24
27
25
28
- name : Build wheels
26
29
run : |
27
- $HOME/.local/bin/ poetry version $(git tag --points-at HEAD)
28
- $HOME/.local/bin/ poetry build
30
+ poetry version $(git tag --points-at HEAD)
31
+ poetry build
29
32
30
33
- name : Upload
31
34
env :
32
35
USERNAME : __token__
33
36
PASSWORD : ${{ secrets.PYPI_TOKEN }}
34
37
run : |
35
- $HOME/.local/bin/ poetry publish --username=$USERNAME --password=$PASSWORD
38
+ poetry publish --username=$USERNAME --password=$PASSWORD
Original file line number Diff line number Diff line change 10
10
python-version : [3.7, 3.8]
11
11
12
12
steps :
13
+ - name : Set PATH
14
+ run : echo "${HOME}/.local/bin" >> $GITHUB_PATH
15
+
13
16
- uses : actions/checkout@v2
14
17
- name : Set up Python ${{ matrix.python-version }}
15
18
uses : actions/setup-python@v2
@@ -28,19 +31,19 @@ jobs:
28
31
- name : Install dependencies
29
32
run : |
30
33
curl -sSL https://install.python-poetry.org | python - --version 1.2.1
31
- $HOME/.local/bin/ poetry install --no-root
34
+ poetry install --no-root
32
35
33
36
- name : Lint
34
37
run : |
35
- $HOME/.local/bin/ poetry run black --check lantern
38
+ poetry run black --check lantern
36
39
37
40
- name : Run tests
38
41
run : |
39
- $HOME/.local/bin/ poetry run pytest
42
+ poetry run pytest
40
43
41
44
- name : Build wheels
42
45
run : |
43
- $HOME/.local/bin/ poetry build
46
+ poetry build
44
47
45
48
build-docs :
46
49
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments