Add build with GTK 4
This commit is contained in:
parent
586bcbfa79
commit
04ed269900
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
.venv
|
||||
__pycache__
|
||||
dist
|
||||
.mypy_cache
|
||||
.github
|
15
.github/Dockerfile-gtk4
vendored
Normal file
15
.github/Dockerfile-gtk4
vendored
Normal 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
12
.github/workflows/build-gtk4.yml
vendored
Normal 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 .
|
Loading…
Reference in New Issue
Block a user