-
Notifications
You must be signed in to change notification settings - Fork 25
55 lines (45 loc) · 1.73 KB
/
test-legacy-py35-37.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI PY35-37 Legacy
on: [push, pull_request]
jobs:
test-legacy:
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.5, 3.6, 3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
test-${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}
restore-keys: |
test-${{ matrix.python-version }}-v1-
- name: Install OS dependencies
run: |
sudo apt-get update
sudo apt-get -qq install libfreetype6-dev liblcms2-dev python3-tk \
ghostscript libffi-dev libjpeg-turbo-progs libopenjp2-7-dev \
cmake imagemagick libharfbuzz-dev libfribidi-dev \
libboost-python-dev libgraphicsmagick++1-dev \
libgraphicsmagick1-dev graphicsmagick libjpeg62 \
zlib1g-dev
- name: Install dependencies
run: |
python -m pip install pip==20.3.4 || true
pip install tox tox-gh-actions
- name: PY35 Test with tox
if: matrix.python-version == '3.5'
run: tox -v -e py35-django{1.8,1.9,1.10,1.11,2.0,2.1,2.2}-pgmagick-pillow{5,6,7,8}-sorl12.4
- name: PY36-37 Test with tox
if: matrix.python-version != '3.5'
run: tox -v -e py{36,37}-django{2.0,2.1,2.2,3.0,3.1,3.2}-pgmagick-pillow{7,8}-sorl12.7