Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Bug: '
labels: ''
assignees: ''

---

## Describe the bug

<!--

A clear and concise description of what the bug is.

(Before opening an issue, check StrictDoc's 'Troubleshooting' document,
which contains solutions to the most common issues.)

-->

## To Reproduce

<!--

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

-->

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

## Screenshots

<!-- If applicable, add screenshots to help explain your problem. -->

## Environment

<!--

- OS: (e.g. Ubuntu Linux 22.04, macOS 12.6.3 (21G419), Windows 11)
- Browser: (e.g. Chrome, Safari)
- Version: (e.g. 22)

-->

## Additional context

<!-- Add any other context about the problem here. -->
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Feature request
about: Create a feature request
title: 'Feature: '
labels: ''
assignees: ''

---

<!-- Feel free to complete only the relevant sections and skip the rest. -->

## Description

<!-- Provide a clear and concise description of the feature you want to request. -->

## Problem

<!-- Describe the problem or gap that this feature aims to address. Why is it needed? -->

## Solution

<!-- Suggest a possible solution or feature implementation. -->

## Additional Information

<!-- Add any other relevant details, such as dependencies, related issues, or references to similar features elsewhere. -->
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/general.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: General issue
about: Create a general issue
title: ''
labels: ''
assignees: ''

---

53 changes: 53 additions & 0 deletions .github/workflows/ci-linux-ubuntu-latest.yml
Original file line number Diff line number Diff line change
@@ -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
51 changes: 51 additions & 0 deletions .github/workflows/ci-mac.yml
Original file line number Diff line number Diff line change
@@ -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
51 changes: 51 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -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