mirror of
https://github.com/truenas/charts.git
synced 2026-11-13 14:46:16 +00:00
Add git workflows for linting and json check
This commit is contained in:
1 parent
c4a5f4f79e
commit
5268b41599
2 files changed
+42
No files matched your search
@@ -0,0 +1,27 @@
|
||||
name: flake8
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.9
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8
|
||||
- name: Setup flake8 config
|
||||
run: |
|
||||
echo '[flake8]' > setup.cfg
|
||||
echo 'max-line-length = 120' >> setup.cfg
|
||||
- name: Analysing the code with flake8
|
||||
run: |
|
||||
find -name upgrade_strategy -exec sh -c "flake8 {} && exit 0 || echo $? > .exit_status" \;
|
||||
test -f .exit_status && rm .exit_status && exit 1; exit 0;
|
||||
Reference in new issue
Block a user