1
0
mirror of https://github.com/thp/pyotherside.git synced 2025-02-05 08:08:23 +08:00
Thomas Perl aed2584b48
Maintenance: CI, documentation, cleanups (#119)
* README.md: Convert to markdown

* Fix minimum Python version requirement

* Github Actions: Build from source

* Fix sphinx-doc path

* Run tests

* Single build workflow

* Remove old build file

* No fail fast

* Set path on macOS only

* Run tests with offscreen QPA plugin

* Build and test vs docs

* README.md: CI badge
2021-06-06 12:01:02 +02:00

36 lines
839 B
YAML

name: Build and test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install -y \
python3-dev \
qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5svg5-dev
- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: |
brew install qt@5 python@3.8
echo PATH=/usr/local/opt/qt@5/bin:$PATH >> ${GITHUB_ENV}
- run: qmake
- run: make
- run: env QT_QPA_PLATFORM=offscreen tests/tests