ci: split linter and build jobs

This commit is contained in:
Romain Failliot 2021-11-20 13:01:20 -05:00
parent 2e94093ec7
commit d49b1d51c6
1 changed files with 11 additions and 9 deletions

View File

@ -1,5 +1,3 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
@ -15,21 +13,25 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
lint:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Lint
- name: Pylint
uses: cclauss/GitHub-Action-for-pylint@master
with:
args: "pylint src/vcs/"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: sudo apt-get -y install appstream appstream-util desktop-file-utils gettext