forked from parkouss/funq
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 937 Bytes
/
common.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 }}