Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ubruhin committed Mar 3, 2024
1 parent 1eaf6d1 commit 949543f
Showing 1 changed file with 34 additions and 44 deletions.
78 changes: 34 additions & 44 deletions .github/workflows/main.yml
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

0 comments on commit 949543f

Please sign in to comment.