Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Install dev packages using Poetry instead of peodd #1116

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ jobs:
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: Runs Elasticsearch ${{ matrix.elasticsearch-version }}
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: ${{ matrix.elasticsearch-version }}

- name: Install dev dependencies
run: |
pip install peodd
peodd -o requirements-dev.txt
pip install -r requirements-dev.txt
pip install setuptools==57.5.0
pip install pip==20.0.1
pip install --upgrade wheel
poetry install --only dev --no-root

- name: Verify Elasticsearch connection
run: |
Expand All @@ -82,8 +82,6 @@ jobs:

- name: Run Sortinghat Server
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "PATH=$HOME/.poetry/bin:$PATH" >> $GITHUB_ENV
git clone --single-branch https://github.com/chaoss/grimoirelab-sortinghat /tmp/sortinghat
cp tests/sortinghat_settings.py /tmp/sortinghat/config/settings/sortinghat_settings.py
cd /tmp/sortinghat
Expand All @@ -97,8 +95,8 @@ jobs:
- name: Test package
run: |
PACKAGE=`(cd dist && ls *whl)` && echo $PACKAGE
pip install --pre ./dist/$PACKAGE
cd tests && python run_tests.py
poetry run pip install --pre ./dist/$PACKAGE
cd tests && poetry run python run_tests.py

release:
needs: [tests]
Expand Down