forked from incuna/django-wkhtmltopdf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'incuna:master' into master
- Loading branch information
Showing
6 changed files
with
60 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python: | ||
- 3.7 | ||
- 3.8 | ||
- 3.9 | ||
django-version: | ||
- "2.2,<3.0" | ||
- "3.2,<4.0" | ||
- "4.0,<4.1" | ||
|
||
steps: | ||
- name: Installing wkhtmltopdf dependencies | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -y libxrender1 libfontconfig1 zlib1g libfreetype6 libx11-6 libxext6 | ||
- name: Installing wkhtmltopdf | ||
run: | | ||
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | ||
tar xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | ||
mkdir -p ~/bin | ||
cp ./wkhtmltox/bin/wkhtmltopdf ~/bin | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/checkout@v2 | ||
- name: Install Dependencies on ${{ matrix.python-version }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install "Django>=${{ matrix.django-version }}" | ||
pip install -r test_requirements.txt | ||
pip install . | ||
- name: Run Tests | ||
run: | | ||
WKHTMLTOPDF_CMD=~/bin/wkhtmltopdf make test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
from .utils import * | ||
|
||
__author__ = 'Incuna Ltd' | ||
__version__ = '3.3.0' | ||
__version__ = '3.4.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters