add setuptools due to poetry bug, clean up other steps

This commit is contained in:
Jonathan Wren 2021-07-08 01:11:57 -07:00
parent 6ecd1b81a1
commit f04da32538

View file

@ -49,12 +49,13 @@ jobs:
if: ${{ matrix.python-version != '3.10-dev' }}
run: |
echo '::group::poetry'
pip install poetry
# see https://github.com/python-poetry/poetry/issues/3153
pip install poetry setuptools
poetry config --local virtualenvs.in-project true
echo '::endgroup::'
echo '::group::Other dependencies'
poetry install --remove-untracked
poetry install
echo '::endgroup::'
echo 'DEPS_INSTALLED=true' >> $GITHUB_ENV
@ -87,9 +88,9 @@ jobs:
poetry run pflake8 jrnl features tests
- name: Test with pytest
if: success() || failure()
if: ${{ env.DEPS_INSTALLED == 'true' }}
run: poetry run pytest --junitxml=reports/pytest/results.xml
- name: Test with behave
if: success() || failure()
if: ${{ env.DEPS_INSTALLED == 'true' }}
run: poetry run behave --no-skipped --format progress2 --junit --junit-directory reports/behave