WIP #25
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
env: | |
CXXFLAGS: "-Wall -Wextra -Werror" # make CI fail on warnings | |
MAKEFLAGS: "-j8" | |
jobs: | |
macos: | |
name: "${{ matrix.runner }}" | |
runs-on: "${{ matrix.runner }}" | |
strategy: | |
matrix: | |
include: | |
# Note: Nosetest doesn't work anymore with recent Python versions! | |
- {runner: "macos-12", nosetests: 0} | |
- {runner: "macos-14", nosetests: 0} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install requirements | |
run: | | |
brew install qt@5 | |
brew link --force qt@5 | |
export PATH="/opt/homebrew/opt/qt@5/bin:$PATH" | |
pip3 install setuptools flake8 | |
export PATH="$PATH:`python3 -m site --user-base`/bin" | |
- uses: ./.github/workflows/common | |
with: | |
nosetests: ${{ matrix.nosetests }} | |
linux: | |
name: "${{ matrix.container }}" | |
runs-on: ubuntu-22.04 | |
container: "${{ matrix.container }}" | |
strategy: | |
matrix: | |
include: | |
# Note: Nosetest doesn't work anymore with recent Python versions! | |
- container: "ubuntu:18.04" | |
packages: "qt5-default qttools5-dev-tools" | |
nosetests: 1 | |
- container: "ubuntu:20.04" | |
packages: "qt5-default qttools5-dev-tools" | |
nosetests: 1 | |
- container: "ubuntu:22.04" | |
packages: "qtbase5-dev qttools5-dev-tools" | |
nosetests: 1 | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install requirements | |
run: | | |
apt-get update && | |
apt-get install -y --no-install-recommends \ | |
build-essential xvfb python3 pip3 python3-flake8 \ | |
${{ matrix.packages }} | |
- uses: ./.github/workflows/common | |
with: | |
shell: bash | |
nosetests: ${{ matrix.nosetests }} |