Skip to content

Commit

Permalink
Added flake8 github action test
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnar Eivind Martinsen committed Sep 23, 2024
1 parent 14523ba commit 285480c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: flake8

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
checkSyntax:
runs-on: ubuntu-latest
steps:
- name: Python Setup
uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: x64
- name: Checkout Source
uses: actions/checkout@v4
- name: Install flake8
run: pip install flake8
- name: Syntax Error Check
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude external
- name: Code Style Check
run: flake8 . --count --max-line-length=99 --ignore E221,E226,E228,E241 --show-source --statistics --exclude external
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# S-ENDA Catalog rebuilder

[![flake8](https://github.com/metno/catalog-rebuilder/actions/workflows/syntax.yml/badge.svg?branch=main)](https://github.com/metno/catalog-rebuilder/actions/workflows/syntax.yml)

Catalog rebuilder of CSW and Solr for the S-ENDA project.

## Design
Expand Down

0 comments on commit 285480c

Please sign in to comment.