forked from parkouss/funq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
191 additions
and
63 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
|
||
env: | ||
MAKEFLAGS: "-j8" | ||
|
||
jobs: | ||
|
||
linux: | ||
name: "qt:${{ matrix.qt }} py:${{ matrix.py }} on ${{ matrix.container }}" | ||
runs-on: ubuntu-22.04 | ||
container: "${{ matrix.container }}" | ||
strategy: | ||
matrix: | ||
include: | ||
- qt: "5.9" | ||
py: "3.6" | ||
container: "ubuntu:18.04" | ||
packages: "qt5-default qttools5-dev-tools qtdeclarative5-dev qml-module-qtquick2" | ||
nosetests: 1 | ||
- qt: "5.12" | ||
py: "3.8" | ||
container: "ubuntu:20.04" | ||
packages: "qt5-default qttools5-dev-tools qtdeclarative5-dev qml-module-qtquick2" | ||
nosetests: 1 | ||
- qt: "5.15" | ||
py: "3.10" | ||
container: "ubuntu:22.04" | ||
packages: "qtbase5-dev qttools5-dev-tools qtdeclarative5-dev qml-module-qtquick2" | ||
nosetests: 0 # Nosetest not working anymore | ||
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 cmake xvfb libglu1-mesa-dev \ | ||
python3 python3-pip python3-flake8 \ | ||
${{ matrix.packages }} | ||
# Stylecheck | ||
- name: Flake8 | ||
run: python3 -m flake8 client/funq server/funq_server | ||
|
||
# Build & test C++ modules | ||
- name: Build libFunq | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake ../server -DBUILD_TESTS=1 -DBUILD_DISALLOW_WARNINGS=1 | ||
make | ||
- name: Run libFunq tests | ||
run: xvfb-run -a build/tests/libFunq/testLibFunq | ||
- name: Run protocole tests | ||
run: xvfb-run -a build/tests/protocole/testProtocole | ||
|
||
# Server | ||
- name: Install server | ||
run: cd server && python3 setup.py develop | ||
|
||
# Client | ||
- name: Install client | ||
run: cd client && python3 setup.py develop | ||
- name: Test client | ||
run: cd client && python3 setup.py test | ||
if: ${{ matrix.nosetests != 0 }} | ||
|
||
# Functional tests | ||
- name: Build test app | ||
run: cd tests-functionnal/funq-test-app && cmake . && make | ||
- name: Test functional | ||
run: cd tests-functionnal && xvfb-run -a nosetests | ||
if: ${{ matrix.nosetests != 0}} | ||
|
||
macos: | ||
name: "qt:${{ matrix.qt }} on ${{ matrix.runner }}" | ||
runs-on: "${{ matrix.runner }}" | ||
strategy: | ||
matrix: | ||
include: | ||
# Note: Nosetest doesn't work anymore with recent Python versions! | ||
- {qt: "5", runner: "macos-12", nosetests: 0} | ||
- {qt: "5", runner: "macos-14", nosetests: 0} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install requirements | ||
run: | | ||
brew install cmake qt@${{ matrix.qt }} | ||
brew link --force qt@${{ matrix.qt }} | ||
echo "$(brew --prefix qt${{ matrix.qt }})/bin" >> $GITHUB_PATH | ||
pip3 install setuptools flake8 | ||
# Stylecheck | ||
- name: Flake8 | ||
run: python3 -m flake8 client/funq server/funq_server | ||
|
||
# Build & test C++ modules | ||
- name: Build libFunq | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake ../server -DBUILD_TESTS=1 -DBUILD_DISALLOW_WARNINGS=1 | ||
make | ||
- name: Run libFunq tests | ||
run: build/tests/libFunq/testLibFunq | ||
- name: Run protocole tests | ||
run: build/tests/protocole/testProtocole | ||
|
||
# Server | ||
- name: Install server | ||
run: cd server && python3 setup.py develop | ||
|
||
# Client | ||
- name: Install client | ||
run: cd client && python3 setup.py develop | ||
- name: Test client | ||
run: cd client && python3 setup.py test | ||
if: ${{ matrix.nosetests != 0 }} | ||
|
||
# Functional tests | ||
- name: Build test app | ||
run: cd tests-functionnal/funq-test-app && cmake . && make | ||
- name: Test functional | ||
run: cd tests-functionnal && xvfb-run -a nosetests | ||
if: ${{ matrix.nosetests != 0}} | ||
|
||
windows: | ||
name: "qt:${{ matrix.qt }} on windows" | ||
runs-on: windows-2022 | ||
strategy: | ||
matrix: | ||
include: | ||
- {qt: "5.15", nosetests: 0} | ||
env: | ||
CMAKE_GENERATOR: "MinGW Makefiles" | ||
CC: "D:/a/funq/Qt/Tools/mingw810_32/bin/gcc.exe" | ||
CXX: "D:/a/funq/Qt/Tools/mingw810_32/bin/g++.exe" | ||
defaults: | ||
run: | ||
shell: cmd | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
version: "${{ matrix.qt }}.*" | ||
tools: "tools_mingw,qt.tools.win32_mingw810" | ||
arch: win32_mingw81 | ||
cache: true | ||
|
||
# Build & test C++ modules | ||
- name: Build libFunq | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake ../server -DBUILD_TESTS=1 -DBUILD_DISALLOW_WARNINGS=1 | ||
make | ||
# Note: The executables don't run yet, don't know why :-/ | ||
# - name: Run libFunq tests | ||
# run: build/tests/libFunq/testLibFunq.exe | ||
# - name: Run protocole tests | ||
# run: build/tests/protocole/testProtocole.exe | ||
|
||
# Server | ||
- name: Install server | ||
run: cd server && python3 setup.py develop | ||
|
||
# Client | ||
- name: Install client | ||
run: cd client && python3 setup.py develop | ||
- name: Test client | ||
run: cd client && python3 setup.py test | ||
if: ${{ matrix.nosetests != 0 }} | ||
|
||
# Functional tests | ||
- name: Build test app | ||
run: cd tests-functionnal/funq-test-app && cmake . && make | ||
- name: Test functional | ||
run: cd tests-functionnal && xvfb-run -a nosetests | ||
if: ${{ matrix.nosetests != 0}} |
This file was deleted.
Oops, something went wrong.
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
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
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
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