44 lines (38 loc) · 1.11 KB
/
build.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
41
42
43
44
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: 23 11 * * */14
jobs:
python:
name: Testing HugoPhotoSwipe
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Windows build is disabled, doesn't work without PyGObject. See:
# https://pygobject.readthedocs.io/en/latest/getting_started.html#windows-logo-windows
os: [ 'ubuntu-latest', 'macos-latest' ] # , 'windows-latest' ]
py: [ '3.8', '3.11' ] # minimal and latest
steps:
- name: Install Python ${{ matrix.py }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.py }}
- name: Install PyGObject dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install libgirepository1.0-dev
- name: Install PyGObject dependencies (Ubuntu)
if: matrix.os == 'macos-latest'
run: |
brew update
brew install pygobject3 gtk4
- name: Checkout
uses: actions/checkout@v2
- name: Test
run: make test_direct