forked from mypaint/mypaint
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (67 loc) · 2.18 KB
/
test.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Test
on:
- push
- pull_request
jobs:
linux:
name: Linux
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install -y \
g++ \
gettext \
intltool \
gir1.2-gtk-3.0 \
libgtk-3-dev \
libjson-c-dev \
liblcms2-dev \
libpng-dev \
python3-dev \
python-gi-dev \
python3-gi-cairo \
python3-nose \
python3-numpy \
python3-setuptools \
swig \
git \
xvfb
- name: "Install libmypaint"
run: |
git clone https://github.com/mypaint/libmypaint
pushd libmypaint
./autogen.sh
./configure --prefix=/usr
make
sudo make install
popd
sudo rm -fr libmypaint
- name: "Install mypaint-brushes"
run: |
git clone https://github.com/mypaint/mypaint-brushes
pushd mypaint-brushes
./autogen.sh
./configure --prefix=/usr
make
sudo make install
popd
sudo rm -fr mypaint-brushes
- name: "Build mypaint"
run: |
which python3
python3 -m this
python3 --version
python3 setup.py build_ext
python3 setup.py build
- name: "Run tests"
run: |
python3 setup.py nosetests --tests lib
python3 setup.py test
python3 setup.py clean --all
MYPAINT_DEBUG=1 xvfb-run -a python setup.py demo --args='--run-and-quit'
sudo python3 setup.py managed_install
sudo python3 setup.py managed_uninstall
bash build-aux/appimage/trigger_build.sh