Add build with GTK 4

This commit is contained in:
Arjan Molenaar 2021-02-26 20:32:20 +01:00
parent 586bcbfa79
commit 04ed269900
No known key found for this signature in database
GPG Key ID: BF977B918996CB13
3 changed files with 32 additions and 0 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.venv
__pycache__
dist
.mypy_cache
.github

15
.github/Dockerfile-gtk4 vendored Normal file
View File

@ -0,0 +1,15 @@
FROM fedora:33
ENV TEST_GTK_VERSION "4.0"
RUN yum install -y gcc gtk4 cairo-devel cairo-gobject-devel gobject-introspection-devel python3-devel python3-pip xorg-x11-server-Xvfb
RUN pip3 install -U poetry pytest
WORKDIR /work
COPY . /work/
RUN poetry install
# Override PyGObject with the master version
RUN poetry run pip install -U https://gitlab.gnome.org/GNOME/pygobject/-/archive/master/pygobject-master.tar.gz
RUN poetry run xvfb-run pytest --cov=gaphas

12
.github/workflows/build-gtk4.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: build
on:
push:
jobs:
build:
name: GTK 4
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: docker build -f .github/Dockerfile-gtk4 .