From d49b1d51c6333ae8309b8365b27324eecb0fe0ce Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Sat, 20 Nov 2021 13:01:20 -0500 Subject: [PATCH] ci: split linter and build jobs --- .github/workflows/main.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1cffd4d..ecd312c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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