Skip to content

Commit 33d44b1

Browse files
committed
build: Sort order of installation
1 parent 14a02f9 commit 33d44b1

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/python-package.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ 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"
2933
- name: Install dependencies
3034
run: |
31-
python -m pip install --upgrade pip
32-
python -m pip install flake8 pytest
33-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
35+
poetry install
3436
- name: Lint with flake8
3537
run: |
3638
# stop the build if there are Python syntax errors or undefined names
@@ -54,13 +56,6 @@ jobs:
5456
uses: actions/setup-python@v3
5557
with:
5658
python-version: '3.x'
57-
- name: Install Poetry
58-
run: |
59-
curl -sSL https://install.python-poetry.org | python3 -
60-
export PATH="$HOME/.local/bin:$PATH"
61-
- name: Install dependencies
62-
run: |
63-
poetry install
6459
- name: Build package
6560
run: python setup.py sdist bdist_wheel
6661
- name: Publish package

0 commit comments

Comments
 (0)