Skip to content

Commit ea79f86

Browse files
committed
[serviceapp.yml] add file
1 parent e0a892c commit ea79f86

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

.github/workflows/serviceapp.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: serviceapp
2+
3+
on:
4+
push:
5+
branches: [ sigc3 ]
6+
pull_request:
7+
branches: [ sigc3 ]
8+
9+
jobs:
10+
build:
11+
name: Build serviceapp
12+
runs-on: ubuntu-24.04
13+
strategy:
14+
matrix:
15+
gcc: [12]
16+
python: ['3.12']
17+
steps:
18+
- name: Install prerequisites
19+
run: |
20+
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
21+
sudo apt-get -q update
22+
sudo apt-get install -y g++-${{ matrix.gcc }} automake build-essential gettext python${{ matrix.python }}-dev
23+
24+
- uses: actions/checkout@v3
25+
with:
26+
fetch-depth: 0
27+
28+
- uses: actions/setup-python@v4
29+
with:
30+
python-version: ${{ matrix.python }}
31+
32+
- name: Install python packages
33+
run: |
34+
pip3 install six flake8
35+
36+
- name: Build serviceapp, gcc-${{ matrix.gcc }}, python ${{ matrix.python }}
37+
env:
38+
CC: "gcc-${{ matrix.gcc }}"
39+
CXX: "g++-${{ matrix.gcc }}"
40+
CXXFLAGS: "-g -Wall"
41+
run: |
42+
autoreconf -i
43+
./configure
44+
make
45+
python -m compileall .
46+
47+
- name: Check format PEP8
48+
run: |
49+
echo "Checking locale format..."
50+
find . -type f -name "*.po" -exec msgfmt {} -o {}.mo \;
51+
echo "Checking PEP8 validation..."
52+
flake8 --ignore=W191,W503,W504,E128,E501,E722 . --exit-zero
53+
echo "Check format PEP8 completed!"
54+
55+
# PEP8 :- IGNORE CODES
56+
# W191 : indentation contains tabs
57+
# W503 : line break before binary operator
58+
# W504 : line break after binary operator
59+
# E128 : continuation line under-indented for visual indent
60+
# E501 : line too long (> 79 characters)
61+
# E722 : do not use bare 'except'

0 commit comments

Comments
 (0)