diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml index d53caf0..3b3fb0f 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/daily.yaml @@ -21,7 +21,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install tox + python -m pip install poetry + poetry install - name: Run tests run: | - tox -e tests + poetry run tox -e tests diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 8a740af..9f3458c 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -24,10 +24,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install tox + python -m pip install poetry + poetry install - name: Check linting, formatting run: | - tox -e check + poetry run tox -e check check-docs: runs-on: ubuntu-latest @@ -43,10 +44,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install tox + python -m pip install poetry + poetry install - name: Check documentation build run: | - tox -e docs + poetry run tox -e docs test: runs-on: ubuntu-latest @@ -67,10 +69,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install tox + python -m pip install poetry + poetry install - name: Run tests run: | - tox -e tests + poetry run tox -e tests - name: Keycloak logs run: | cat keycloak_test_logs.txt @@ -89,7 +92,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install tox + python -m pip install poetry + poetry install - name: Run build run: | - tox -e build + poetry run tox -e build diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c073b31..a84cced 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -19,23 +19,24 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install tox wheel twine + python -m pip install poetry + poetry install - name: Apply the tag version run: | version=${{ github.ref_name }} sed -Ei '/^version = /s|= "[0-9.]+"$|= "'${version:-1}'"|' pyproject.toml - name: Run build run: | - tox -e build + poetry run tox -e build - name: Publish to PyPi env: TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} run: | - twine upload -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/* + poetry run twine upload -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/* - name: Run changelog run: | - tox -e changelog + poetry run tox -e changelog - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: "docs: changelog update"