-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.08 KB
/
test.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
name: Test PyCairo in Windows
on:
workflow_dispatch:
jobs:
test:
name: Test
runs-on: windows-latest
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
steps:
- uses: actions/checkout@v2
- name: Set up Python v${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
git clone https://github.com/Zulko/gizeh.git --depth=1
cd gizeh
sed -i 's/cairocffi as cairo/cairo/g' gizeh/gizeh.py
sed -i 's/cairocffi/pycairo>=1.20.0/g' setup.py
sed -i 's/fractions import gcd/math import gcd/g' examples/roses.py
python -m pip install -e .
- name: Test
run: |
cd gizeh/examples
python _run_all_examples.py
- name: Upload examples results
uses: actions/upload-artifact@v2
with:
name: examples-v${{ matrix.python-version }}
path: gizeh/examples/*.png