Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ostefano committed Aug 24, 2024
1 parent a01aa15 commit f9d7278
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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


12 changes: 6 additions & 6 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -51,16 +51,16 @@ 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
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'

- name: Install poetry
run: python -m pip install poetry

- name: Install dependencies
run: poetry install --with test

Expand Down

0 comments on commit f9d7278

Please sign in to comment.