Skip to content

add precommit & codestyle check #5

add precommit & codestyle check

add precommit & codestyle check #5

Workflow file for this run

name: Codestyle Check
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
Lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Download Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout Develop
run: |
if ! git show-ref --quiet refs/heads/develop; then \
echo "local develop branch is missing, creating local develop branch that tracks remote develop branch"
git fetch origin develop
git branch develop --track origin/develop
else
echo "local develop branch exist, skipping"
fi
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- name: Test
run: make lint