Migrate linting to GitHub actions
This commit is contained in:
parent
f1cc01a399
commit
3e452b73d1
2 changed files with 32 additions and 24 deletions
32
.github/workflows/build.yaml
vendored
Normal file
32
.github/workflows/build.yaml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
name: Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
PythonLint:
|
||||||
|
runs-on: ubuntu-16.04
|
||||||
|
container: 'puremourning/vimspector:test'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: 'Insatll requirements'
|
||||||
|
run: pip3 install --user -r dev_requirements.txt
|
||||||
|
- name: 'Run flake8'
|
||||||
|
run: '$HOME/.local/bin/flake8 python3/ *.py'
|
||||||
|
VimscriptLint:
|
||||||
|
runs-on: 'ubuntu-16.04'
|
||||||
|
container: 'puremourning/vimspector:test'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: 'Install requirements'
|
||||||
|
run: pip3 install --user -r dev_requirements.txt
|
||||||
|
- name: 'Run vint'
|
||||||
|
run: $HOME/.local/bin/vint autoload/ compiler/ plugin/ tests/ syntax/
|
||||||
|
|
@ -7,30 +7,6 @@ pr:
|
||||||
stages:
|
stages:
|
||||||
- stage: Build
|
- stage: Build
|
||||||
jobs:
|
jobs:
|
||||||
- job: 'PythonLint'
|
|
||||||
displayName: "Python Lint"
|
|
||||||
pool:
|
|
||||||
vmImage: 'ubuntu-16.04'
|
|
||||||
container: 'puremourning/vimspector:test'
|
|
||||||
steps:
|
|
||||||
- bash: pip3 install -r dev_requirements.txt
|
|
||||||
displayName: "Install requirements"
|
|
||||||
|
|
||||||
- bash: '$HOME/.local/bin/flake8 python3/ *.py'
|
|
||||||
displayName: "Run flake8"
|
|
||||||
|
|
||||||
- job: 'Vimscript'
|
|
||||||
displayName: "Vimscript Lint"
|
|
||||||
pool:
|
|
||||||
vmImage: 'ubuntu-16.04'
|
|
||||||
container: 'puremourning/vimspector:test'
|
|
||||||
steps:
|
|
||||||
- bash: pip3 install -r dev_requirements.txt
|
|
||||||
displayName: "Install requirements"
|
|
||||||
|
|
||||||
- bash: $HOME/.local/bin/vint autoload/ compiler/ plugin/ tests/ syntax/
|
|
||||||
displayName: "Run vint"
|
|
||||||
|
|
||||||
- job: 'linux'
|
- job: 'linux'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-16.04'
|
vmImage: 'ubuntu-16.04'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue