-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 944 Bytes
/
workflow.yml
File metadata and controls
38 lines (32 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
on: [push, pull_request, workflow_dispatch]
jobs:
python-lint:
runs-on: ubuntu-latest
name: CI workflow
steps:
- name: checkout source repo
uses: actions/checkout@v2
- name: pip_install
run: pip install python-gnupg
- name: isort
run: |
pip install isort
isort pynoteslib tests
# - name: commit isort changes
# run: |
# git config --local user.email "action@github.com"
# git config --local user.name "GitHub Action"
# git add -A && git diff-index --cached --quiet HEAD || git commit -m 'isort'
# - name: push isort changes
# uses: ad-m/github-push-action@v0.5.0
# with:
# github_token: ${{ secrets.GH_ACCESS_TOKEN }}
# branch: ${{ github.ref }}
- name: flake8
run: |
pip install flake8
flake8 pynoteslib tests
- name: pylint
run: |
pip install pylint
pylint pynoteslib