diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 9bce2285..9606249a 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -18,14 +18,14 @@ jobs: - name: Install packages run: sudo apt-get install libpoppler-cpp-dev libzbar0 tesseract-ocr yara - - name: Install poetry - run: pipx install poetry - - name: Set up Python 3.12 uses: actions/setup-python@v5 with: python-version: 3.12 + - name: Install poetry + run: python -m pip install poetry + - name: Install dependencies run: poetry install --with docs @@ -49,6 +49,23 @@ jobs: name: python-package-distributions path: dist/ + deploy-gh-pages: + runs-on: ubuntu-latest + needs: build + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 + # publish-to-pypi: # runs-on: ubuntu-latest @@ -67,19 +84,5 @@ jobs: # # repository-url: https://test.pypi.org/legacy/ # # -# deploy-gh-pages: -# runs-on: ubuntu-latest -# needs: build -# -# permissions: -# pages: write -# id-token: write -# -# environment: -# name: github-pages -# url: ${{ steps.deployment.outputs.page_url }} -# -# steps: -# - name: Deploy to GitHub Pages -# id: deployment -# uses: actions/deploy-pages@v2 + + diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index 9a9087d9..481801b0 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -21,15 +21,15 @@ jobs: - name: Install packages run: sudo apt-get install libpoppler-cpp-dev libzbar0 tesseract-ocr yara - - name: Install poetry - run: pipx install poetry - - name: Set up Python 3.12 uses: actions/setup-python@v5 with: python-version: 3.12 cache: 'poetry' + - name: Install poetry + run: python -m pip install poetry + - name: Install dependencies run: poetry install --with docs @@ -51,9 +51,6 @@ jobs: - name: Install packages run: sudo apt-get install libpoppler-cpp-dev libzbar0 tesseract-ocr yara - - - name: Install poetry - run: pipx install poetry - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 @@ -61,6 +58,9 @@ jobs: python-version: ${{ matrix.python-version }} cache: 'poetry' + - name: Install poetry + run: python -m pip install poetry + - name: Install dependencies run: poetry install --with test