90 lines
2.4 KiB
YAML
90 lines
2.4 KiB
YAML
name: Test
|
|
|
|
# to-do:
|
|
# - add a macos test with brew etc.
|
|
# - build with clang/asan/etc. and run the fuzz tests
|
|
# - libvips work with 1.6.1 in ubuntu-20.04, but fails with 1.10, strangely
|
|
# - paste this back when it's working
|
|
# - name: Add libheif PPA
|
|
# run: |
|
|
# sudo add-apt-repository ppa:strukturag/libde265
|
|
# sudo add-apt-repository ppa:strukturag/libheif
|
|
# you may also need to add libaom-dev, libde265-dev, libx265-dev to get
|
|
# this to work, see https://github.com/strukturag/libheif/issues/404
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Update apt
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
run:
|
|
sudo apt-get update -qq -o Acquire::Retries=3
|
|
|
|
- name: Install platform dependencies
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
run:
|
|
sudo apt-get install --fix-missing -qq -o Acquire::Retries=3
|
|
gtk-doc-tools
|
|
gobject-introspection
|
|
python3-pip
|
|
python3-setuptools
|
|
python3-wheel
|
|
libfftw3-dev
|
|
libexif-dev
|
|
libjpeg-turbo8-dev
|
|
libpng-dev
|
|
libwebp-dev
|
|
libtiff5-dev
|
|
libheif-dev
|
|
libexpat1-dev
|
|
libcfitsio-dev
|
|
libgsl-dev
|
|
libmatio-dev
|
|
libnifti-dev
|
|
liborc-0.4-dev
|
|
liblcms2-dev
|
|
libpoppler-glib-dev
|
|
librsvg2-dev
|
|
libgif-dev
|
|
libopenexr-dev
|
|
libpango1.0-dev
|
|
libgsf-1-dev
|
|
libopenslide-dev
|
|
libffi-dev
|
|
|
|
- name: Configure libvips
|
|
run: CFLAGS=-Wall CXXFLAGS=-Wall ./autogen.sh
|
|
--disable-dependency-tracking
|
|
--disable-deprecated
|
|
|
|
- name: Build libvips
|
|
run: make V=0
|
|
|
|
- name: Check libvips
|
|
run: make V=0 check
|
|
|
|
- name: Install libvips
|
|
run: |
|
|
sudo make V=0 install
|
|
sudo ldconfig
|
|
|
|
- name: Install pyvips
|
|
run: pip3 install pyvips pytest
|
|
|
|
- name: Run test suite
|
|
run: python3 -m pytest
|