diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..c8fad2c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,54 @@ +--- +name: Bug report +about: Create a report to help us improve +title: 'Bug: ' +labels: '' +assignees: '' + +--- + +## Describe the bug + + + +## To Reproduce + + + +## Expected behavior + + + +## Screenshots + + + +## Environment + + + +## Additional context + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..8d145a9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,26 @@ +--- +name: Feature request +about: Create a feature request +title: 'Feature: ' +labels: '' +assignees: '' + +--- + + + +## Description + + + +## Problem + + + +## Solution + + + +## Additional Information + + diff --git a/.github/ISSUE_TEMPLATE/general.md b/.github/ISSUE_TEMPLATE/general.md new file mode 100644 index 0000000..4f07503 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/general.md @@ -0,0 +1,9 @@ +--- +name: General issue +about: Create a general issue +title: '' +labels: '' +assignees: '' + +--- + diff --git a/.github/workflows/ci-linux-ubuntu-latest.yml b/.github/workflows/ci-linux-ubuntu-latest.yml new file mode 100644 index 0000000..c16fce6 --- /dev/null +++ b/.github/workflows/ci-linux-ubuntu-latest.yml @@ -0,0 +1,53 @@ +name: "HTML2PDF on Linux" + +on: + pull_request: + branches: [ "**" ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [ + "3.9", "3.12" + ] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Upgrade pip + run: | + python -m pip install --upgrade pip + + - name: Install Python packages + run: | + pip install -r requirements.development.txt + + - name: Clone HTML2PDF.js + run: | + invoke bootstrap + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Install HPDF dependencies. + run: | + python developer/pip_install_hpdf_deps.py + + - name: Run Lint tasks + run: | + invoke lint + + - name: Build HTML2PDF.js + run: | + invoke build + + - name: Run tests + run: | + invoke test diff --git a/.github/workflows/ci-mac.yml b/.github/workflows/ci-mac.yml new file mode 100644 index 0000000..72f3c69 --- /dev/null +++ b/.github/workflows/ci-mac.yml @@ -0,0 +1,51 @@ +name: "HTML2PDF on macOS" + +on: + pull_request: + branches: [ "**" ] + +jobs: + build: + runs-on: macos-13 + + strategy: + matrix: + python-version: [ + "3.8", "3.12" + ] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Upgrade pip + run: | + python -m pip install --upgrade pip + + - name: Install minimal Python packages + run: | + pip install -r requirements.development.txt + + - name: Clone HTML2PDF.js + run: | + invoke bootstrap + + - name: Install HPDF dependencies. + run: | + python developer/pip_install_hpdf_deps.py + + - name: Run Lint tasks + run: | + invoke lint + + - name: Build HTML2PDF.js + run: | + invoke build + + - name: Run tests + run: | + invoke test diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml new file mode 100644 index 0000000..5479969 --- /dev/null +++ b/.github/workflows/ci-windows.yml @@ -0,0 +1,51 @@ +name: "HTML2PDF on Windows" + +# FIXME: Disabled until WDM detects Chrome on Windows reliably. +# on: +# pull_request: +# branches: [ "**" ] + +jobs: + build: + runs-on: windows-latest + + strategy: + matrix: + python-version: ["3.12"] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Upgrade pip + run: | + python -m pip install --upgrade pip + + - name: Install minimal Python packages + run: | + pip install -r requirements.development.txt + + - name: Clone HTML2PDF.js + run: | + invoke bootstrap + + - name: Install HPDF dependencies. + run: | + python developer/pip_install_hpdf_deps.py + + - name: Run Lint tasks + run: | + invoke lint + + - name: Build HTML2PDF.js + run: | + invoke build + + - name: Run tests (Bash) + run: | + invoke test + shell: bash