diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..b5ffad6 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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/ diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7eb6946..e3f5f0d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,30 +7,6 @@ pr: stages: - stage: Build 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' pool: vmImage: 'ubuntu-16.04'