Skip to content

Commit 927c44c

Browse files
authored
.github: add CI files and issue templates (#5)
1 parent 349ddca commit 927c44c

File tree

6 files changed

+244
-0
lines changed

6 files changed

+244
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: 'Bug: '
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Describe the bug
11+
12+
<!--
13+
14+
A clear and concise description of what the bug is.
15+
16+
(Before opening an issue, check StrictDoc's 'Troubleshooting' document,
17+
which contains solutions to the most common issues.)
18+
19+
-->
20+
21+
## To Reproduce
22+
23+
<!--
24+
25+
Steps to reproduce the behavior:
26+
27+
1. Go to '...'
28+
2. Click on '....'
29+
3. Scroll down to '....'
30+
4. See error
31+
32+
-->
33+
34+
## Expected behavior
35+
36+
<!-- A clear and concise description of what you expected to happen. -->
37+
38+
## Screenshots
39+
40+
<!-- If applicable, add screenshots to help explain your problem. -->
41+
42+
## Environment
43+
44+
<!--
45+
46+
- OS: (e.g. Ubuntu Linux 22.04, macOS 12.6.3 (21G419), Windows 11)
47+
- Browser: (e.g. Chrome, Safari)
48+
- Version: (e.g. 22)
49+
50+
-->
51+
52+
## Additional context
53+
54+
<!-- Add any other context about the problem here. -->
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Feature request
3+
about: Create a feature request
4+
title: 'Feature: '
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Feel free to complete only the relevant sections and skip the rest. -->
11+
12+
## Description
13+
14+
<!-- Provide a clear and concise description of the feature you want to request. -->
15+
16+
## Problem
17+
18+
<!-- Describe the problem or gap that this feature aims to address. Why is it needed? -->
19+
20+
## Solution
21+
22+
<!-- Suggest a possible solution or feature implementation. -->
23+
24+
## Additional Information
25+
26+
<!-- Add any other relevant details, such as dependencies, related issues, or references to similar features elsewhere. -->

.github/ISSUE_TEMPLATE/general.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: General issue
3+
about: Create a general issue
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "HTML2PDF on Linux"
2+
3+
on:
4+
pull_request:
5+
branches: [ "**" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
python-version: [
14+
"3.9", "3.12"
15+
]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v1
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Upgrade pip
26+
run: |
27+
python -m pip install --upgrade pip
28+
29+
- name: Install Python packages
30+
run: |
31+
pip install -r requirements.development.txt
32+
33+
- name: Clone HTML2PDF.js
34+
run: |
35+
invoke bootstrap
36+
env:
37+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Install HPDF dependencies.
40+
run: |
41+
python developer/pip_install_hpdf_deps.py
42+
43+
- name: Run Lint tasks
44+
run: |
45+
invoke lint
46+
47+
- name: Build HTML2PDF.js
48+
run: |
49+
invoke build
50+
51+
- name: Run tests
52+
run: |
53+
invoke test

.github/workflows/ci-mac.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "HTML2PDF on macOS"
2+
3+
on:
4+
pull_request:
5+
branches: [ "**" ]
6+
7+
jobs:
8+
build:
9+
runs-on: macos-13
10+
11+
strategy:
12+
matrix:
13+
python-version: [
14+
"3.8", "3.12"
15+
]
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v1
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Upgrade pip
26+
run: |
27+
python -m pip install --upgrade pip
28+
29+
- name: Install minimal Python packages
30+
run: |
31+
pip install -r requirements.development.txt
32+
33+
- name: Clone HTML2PDF.js
34+
run: |
35+
invoke bootstrap
36+
37+
- name: Install HPDF dependencies.
38+
run: |
39+
python developer/pip_install_hpdf_deps.py
40+
41+
- name: Run Lint tasks
42+
run: |
43+
invoke lint
44+
45+
- name: Build HTML2PDF.js
46+
run: |
47+
invoke build
48+
49+
- name: Run tests
50+
run: |
51+
invoke test

.github/workflows/ci-windows.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "HTML2PDF on Windows"
2+
3+
# FIXME: Disabled until WDM detects Chrome on Windows reliably.
4+
# on:
5+
# pull_request:
6+
# branches: [ "**" ]
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
12+
strategy:
13+
matrix:
14+
python-version: ["3.12"]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Upgrade pip
25+
run: |
26+
python -m pip install --upgrade pip
27+
28+
- name: Install minimal Python packages
29+
run: |
30+
pip install -r requirements.development.txt
31+
32+
- name: Clone HTML2PDF.js
33+
run: |
34+
invoke bootstrap
35+
36+
- name: Install HPDF dependencies.
37+
run: |
38+
python developer/pip_install_hpdf_deps.py
39+
40+
- name: Run Lint tasks
41+
run: |
42+
invoke lint
43+
44+
- name: Build HTML2PDF.js
45+
run: |
46+
invoke build
47+
48+
- name: Run tests (Bash)
49+
run: |
50+
invoke test
51+
shell: bash

0 commit comments

Comments
 (0)