Skip to content

Commit 482a99e

Browse files
committed
build: change order of execution in workflows
1 parent 985cd69 commit 482a99e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/python-package.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ jobs:
2626
uses: actions/setup-python@v3
2727
with:
2828
python-version: ${{ matrix.python-version }}
29-
- name: Install Poetry
30-
run: |
31-
curl -sSL https://install.python-poetry.org | python3 -
32-
export PATH="$HOME/.local/bin:$PATH"
33-
- name: Install dependencies
34-
run: |
35-
poetry install
36-
- name: Test with pytest
37-
run: |
38-
poetry run pytest
3929
pypi-publish:
4030
name: Upload release to PyPI
4131
runs-on: ubuntu-latest
@@ -50,6 +40,16 @@ jobs:
5040
uses: actions/setup-python@v3
5141
with:
5242
python-version: '3.x'
43+
- name: Install Poetry
44+
run: |
45+
curl -sSL https://install.python-poetry.org | python3 -
46+
export PATH="$HOME/.local/bin:$PATH"
47+
- name: Install dependencies
48+
run: |
49+
poetry install
50+
- name: Build package
51+
run: |
52+
poetry build
5353
- name: Publish package
5454
env:
5555
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}

0 commit comments

Comments
 (0)