Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ jobs:
DBUSER: root
DBPASSWORD:
DBHOST: 127.0.0.1
DBPORT: $
DBPORT: $
31 changes: 31 additions & 0 deletions .github/workflows/pep8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PEP8 Style Checker

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

jobs:
build:
runs-on: ubuntu-latest
name: Test PEP8 Style
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v27

- name: Setup pycodestyle
run: pip install pycodestyle

- name: Check style
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }};
do if [[ $file == *.py ]];
then pycodestyle --first $file;
fi;
done