-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add CI workflow using Github Actions
remove Travis CI as it's no longer free for open source.
- Loading branch information
Showing
3 changed files
with
60 additions
and
50 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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: AutoBouquetsMaker | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
name: Build AutoBouquetsMaker | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
gcc: [12] | ||
python: ['3.11'] | ||
steps: | ||
- name: Install prerequisites | ||
run: | | ||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
sudo apt-get -q update | ||
sudo apt-get install -y g++-${{ matrix.gcc }} automake build-essential gettext python${{ matrix.python }}-dev | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Install python packages | ||
run: | | ||
pip3 install six flake8 | ||
- name: Build AutoBouquetsMaker, gcc-${{ matrix.gcc }}, python ${{ matrix.python }} | ||
env: | ||
CC: "gcc-${{ matrix.gcc }}" | ||
CXX: "g++-${{ matrix.gcc }}" | ||
CXXFLAGS: "-g -Wall" | ||
run: | | ||
autoreconf -i | ||
./configure | ||
make | ||
python -m compileall -l . | ||
- name: Check format PEP8 | ||
run: | | ||
echo "Checking locale format..." | ||
find . -type f -name "*.po" -exec msgfmt {} -o {}.mo \; | ||
echo "Checking PEP8 validation..." | ||
flake8 --ignore=W191,E128,E501,E722 . --exit-zero | ||
echo "Check format PEP8 completed!" | ||
# PEP8 :- IGNORE CODES | ||
# W191 : indentation contains tabs | ||
# E128 : continuation line under-indented for visual indent | ||
# E501 : line too long (> 79 characters) | ||
# E722 : do not use bare 'except' |
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
AutoBouquetsMaker [![Build Status](https://travis-ci.org/oe-alliance/AutoBouquetsMaker.svg?branch=master)](https://travis-ci.org/oe-alliance/AutoBouquetsMaker) | ||
AutoBouquetsMaker [![Build Status](https://github.com/oe-alliance/AutoBouquetsMaker/actions/workflows/autobouquetsmaker.yml/badge.svg)](https://github.com/oe-alliance/AutoBouquetsMaker/actions/workflows/autobouquetsmaker.yml) | ||
================ | ||
|
||
Automatically build and update bouquets from the DVB stream. |
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This 'Check format PEP8' task shows a lot more PEP8 noise remaining, even after last months PEP8 double aggressive commit.
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Owing to objections, not all the PEP rules/guides/preferences were added to the script that Persian Prince uses. I don't think that anybody in E2 community will abandon tabs for four spaces.
Feel free to make other PEP changes that are beneficial. And resolve some of the translation script noise :)
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PEP8 checker added to this workflow allows for tab indentation instead of 4 spaces, but not a mixture.
This one commit #272 fixes 65 of the warnings due indentation contains mixed spaces and tabs. :)
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe following is useful?
https://github.com/oe-alliance/oe-alliance-plugins/blob/master/CI/
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After todays last two commits are merged, all the whitespace warnings noise should be silenced.
The ABM dev's mostly only need to fix the remaing warnings about the unused imports, variables and the conditional statements.
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Down to following:
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./AutoBouquetsMaker/src/scanner/bouquetswriter.py:329:35: F821 undefined name 'e'
./AutoBouquetsMaker/src/scanner/bouquetswriter.py:339:35: F821 undefined name 'e'
./AutoBouquetsMaker/src/scanner/bouquetswriter.py:537:69: F821 undefined name 'e'
No idea why that shows because the file is fixed.
ngettext and unicode are available even though they are not specifically imported. So not an error.
PID_STATUS there for info but not used.
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./AutoBouquetsMaker/src/scanner/bouquetswriter.py:329:35: F821 undefined name 'e'
./AutoBouquetsMaker/src/scanner/bouquetswriter.py:339:35: F821 undefined name 'e'
./AutoBouquetsMaker/src/scanner/bouquetswriter.py:537:69: F821 undefined name 'e
except Exception as e:
or
remove the e
except: print("[ABM-BouquetsWriter] ", e, file=log)
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./xml2po.py:31:41: W605 invalid escape sequence '\Z'
try silence with no quality assurance comment!
self.ishex = re.compile('#[0-9a-fA-F]+\Z') # noqa: W605
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opps. Ok, so that is fixed.
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/oe-alliance/AutoBouquetsMaker/actions/runs/6278674021/job/17052919254
Looks like all are silent now.
1b99ab5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, any new PR can be quickly looked at in the PEP8 checker for quality control before commit now :)