build #140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |