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 61bf1af commit d5d560d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 27 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Common Steps"
inputs:
nosetests:
required: true
runs:
using: "composite"
steps:

# Stylecheck
- name: Flake8
run: flake8 client/funq server/funq_server

# Server
- name: Install server
run: cd server && python3 setup.py develop
- name: Build server tests
run: cd server/tests && qmake QMAKE_CXXFLAGS="$CXXFLAGS" && make
- name: Test server
run: make -C server/tests/ check

# Client
- name: Install client
run: cd client && python3 setup.py develop
# Note: Nosetest doesn't work anymore with recent Python versions!
- name: Test client
run: cd client && python3 setup.py test
if: ${{ nosetests }}

# Functional tests
- name: Build test app
run: cd tests-functionnal/funq-test-app && qmake QMAKE_CXXFLAGS="$CXXFLAGS" && make
- name: Test functional
run: cd tests-functionnal && nosetests
if: ${{ nosetests }}
30 changes: 3 additions & 27 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,6 @@ jobs:
export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"
pip3 install setuptools flake8
export PATH="$PATH:`python3 -m site --user-base`/bin"
# Stylecheck
- name: Flake8
run: flake8 client/funq server/funq_server

# Server
- name: Install server
run: cd server && python3 setup.py develop
- name: Build server tests
run: cd server/tests && qmake QMAKE_CXXFLAGS="$CXXFLAGS" && make
- name: Test server
run: make -C server/tests/ check

# Client
- name: Install client
run: cd client && python3 setup.py develop
# Note: Nosetest doesn't work anymore with recent Python versions!
- name: Test client
run: cd client && python3 setup.py test
if: ${{ matrix.nosetests }}

# Functional tests
- name: Build test app
run: cd tests-functionnal/funq-test-app && qmake QMAKE_CXXFLAGS="$CXXFLAGS" && make
- name: Test functional
run: cd tests-functionnal && nosetests
if: ${{ matrix.nosetests }}
- uses: ./.github/workflows/common
with:
nosetests: ${{ matrix.nosetests }}

0 comments on commit d5d560d

Please sign in to comment.