Skip to content

Commit 9deebf7

Browse files
committed
build: add poetry to path
1 parent a28f91e commit 9deebf7

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Set PATH
12+
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
13+
1114
- uses: actions/checkout@v2
1215
- name: Set up Python
1316
uses: actions/setup-python@v2
@@ -16,20 +19,20 @@ jobs:
1619
- name: Install dependencies
1720
run: |
1821
curl -sSL https://install.python-poetry.org | python - --version 1.2.1
19-
$HOME/.local/bin/poetry install
22+
poetry install
2023
2124
- name: Run tests
2225
run: |
23-
$HOME/.local/bin/poetry run pytest
26+
poetry run pytest
2427
2528
- name: Build wheels
2629
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
2932
3033
- name: Upload
3134
env:
3235
USERNAME: __token__
3336
PASSWORD: ${{ secrets.PYPI_TOKEN }}
3437
run: |
35-
$HOME/.local/bin/poetry publish --username=$USERNAME --password=$PASSWORD
38+
poetry publish --username=$USERNAME --password=$PASSWORD

.github/workflows/test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
python-version: [3.7, 3.8]
1111

1212
steps:
13+
- name: Set PATH
14+
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
15+
1316
- uses: actions/checkout@v2
1417
- name: Set up Python ${{ matrix.python-version }}
1518
uses: actions/setup-python@v2
@@ -28,19 +31,19 @@ jobs:
2831
- name: Install dependencies
2932
run: |
3033
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
3235
3336
- name: Lint
3437
run: |
35-
$HOME/.local/bin/poetry run black --check lantern
38+
poetry run black --check lantern
3639
3740
- name: Run tests
3841
run: |
39-
$HOME/.local/bin/poetry run pytest
42+
poetry run pytest
4043
4144
- name: Build wheels
4245
run: |
43-
$HOME/.local/bin/poetry build
46+
poetry build
4447
4548
build-docs:
4649
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)