Skip to content

Commit

Permalink
Add workflows yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Nov 17, 2024
1 parent 4272956 commit e05ff1a
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/satscnlcn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: SatScanLcn

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Build SatScanLcn
runs-on: ubuntu-24.04
strategy:
matrix:
gcc: [12]
python: ['3.12']
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 SatScanLcn, 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 .
- 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,W503,W504,E128,E501,E722 . --exit-zero
echo "Check format PEP8 completed!"
# PEP8 :- IGNORE CODES
# W191 : indentation contains tabs
# W503 : line break before binary operator
# W504 : line break after binary operator
# E128 : continuation line under-indented for visual indent
# E501 : line too long (> 79 characters)
# E722 : do not use bare 'except'

0 comments on commit e05ff1a

Please sign in to comment.