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
1 changed file
with
34 additions
and
44 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 |
---|---|---|
@@ -1,52 +1,42 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CXXFLAGS: "-Wall -Wextra -Werror" # make CI fail on warnings | ||
MAKEFLAGS: "-j8" | ||
|
||
jobs: | ||
build: | ||
|
||
macos: | ||
name: "${{ matrix.runner }}" | ||
runs-on: "${{ matrix.runner }}" | ||
strategy: | ||
matrix: | ||
config: | ||
- name: Linux py3.5 qt5.15 | ||
os: linux | ||
runner: ubuntu-20.04 | ||
python: 3.5 | ||
qt: 5.14.2 | ||
name: ${{ matrix.config.name }} | ||
runs-on: ${{ matrix.config.runner }} | ||
# container: | ||
# image: ${{ matrix.config.image }} | ||
env: | ||
OS: ${{ matrix.config.os }} | ||
QT_SELECT: ${{ matrix.config.qt }} | ||
FUNQ_CXXFLAGS: "-Wall -Wextra -Werror" # make CI fail on warnings | ||
include: | ||
- {runner: "macos-12"} | ||
- {runner: "macos-14"} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Python ${{ matrix.config.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.config.python }} | ||
architecture: 'x64' | ||
- run: source ./ci/install_dependencies.sh # source because of exports | ||
- run: | | ||
python --version | ||
qmake --version | ||
- run: | | ||
cd server | ||
flake8 funq_server | ||
python setup.py install | ||
cd tests | ||
qmake QMAKE_CXXFLAGS="$FUNQ_CXXFLAGS" | ||
make -j8 | ||
make check | ||
- run: | | ||
cd client | ||
flake8 funq | ||
python setup.py install | ||
python setup.py test | ||
- run: | | ||
cd tests-functionnal/funq-test-app | ||
qmake QMAKE_CXXFLAGS="$FUNQ_CXXFLAGS" | ||
make -j8 | ||
cd .. | ||
nosetests | ||
- name: Install requirements | ||
run: | | ||
brew update | ||
brew install qt5 | ||
brew link --force qt5 | ||
pip install flake8 | ||
export PATH="$PATH:`python3 -m site --user-base`/bin" | ||
- name: Check | ||
run: flake8 client/funq server/funq_server | ||
- name: Install client | ||
run: cd client && python3 setup.py develop | ||
- name: Install server | ||
run: cd server && python3 setup.py develop | ||
- name: Build server tests | ||
run: cd server/tests && qmake QMAKE_CXXFLAGS="$CXXFLAGS" && make | ||
- name: Build test app | ||
run: cd tests-functionnal/funq-test-app && qmake QMAKE_CXXFLAGS="$CXXFLAGS" && make | ||
- name: Test client | ||
run: cd client && python3 setup.py test | ||
- name: Test server | ||
run: make -C server/tests/ check | ||
- name: Test functional | ||
run: cd tests-functionnal && nosetests |