Skip to content

Commit

Permalink
[ci] Install dev packages using Poetry instead of peodd
Browse files Browse the repository at this point in the history
Poetry supports installing packages from a specific group
since version `1.2`. Replace the use of `peodd` with Poetry
in the installation of the test packages.

Signed-off-by: Jose Javier Merchante <[email protected]>
  • Loading branch information
jjmerchante committed Aug 29, 2023
1 parent bd3866c commit 315e999
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,18 @@ jobs:
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # v4.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "PATH=$HOME/.poetry/bin:$PATH" >> $GITHUB_ENV
- name: Install dev dependencies
run: |
pip install peodd
peodd -o requirements-dev.txt
pip install -r requirements-dev.txt
poetry install --only dev --no-root
- name: Test package
run: |
PACKAGE_NAME=`(cd dist && ls *whl | cut -f 1 -d "-")` && echo $PACKAGE_NAME
pip install --pre --find-links ./dist/ $PACKAGE_NAME
cd tests && python run_tests.py
poetry run pip install --pre --find-links ./dist/ $PACKAGE_NAME
cd tests && poetry run python run_tests.py
release:
needs: [tests]
Expand Down

0 comments on commit 315e999

Please sign in to comment.