From c1f291104a876ffc4d5ade91cac2fdc84664c460 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Wed, 10 May 2023 18:30:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=F0=9F=A7=AA=20Include=20linters=20?= =?UTF-8?q?into=20the=20main=20CI=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This approach allows depending on linting outcome in the branch protection. It also lets us keep the workflow bits modular. --- .github/workflows/build-test-n-publish.yml | 4 ++++ .github/workflows/{tox-linters.yml => reusable-linters.yml} | 0 README.rst | 4 ---- 3 files changed, 4 insertions(+), 4 deletions(-) rename .github/workflows/{tox-linters.yml => reusable-linters.yml} (100%) diff --git a/.github/workflows/build-test-n-publish.yml b/.github/workflows/build-test-n-publish.yml index 1c027c6df..d952c1350 100644 --- a/.github/workflows/build-test-n-publish.yml +++ b/.github/workflows/build-test-n-publish.yml @@ -83,6 +83,9 @@ env: jobs: + lint: + uses: ./.github/workflows/reusable-linters.yml + pre-setup: name: ⚙️ Pre-set global build settings runs-on: ubuntu-latest @@ -2104,6 +2107,7 @@ jobs: needs: - build-rpms - dist-meta + - lint - test-linux - test-macos diff --git a/.github/workflows/tox-linters.yml b/.github/workflows/reusable-linters.yml similarity index 100% rename from .github/workflows/tox-linters.yml rename to .github/workflows/reusable-linters.yml diff --git a/README.rst b/README.rst index 1723d6d3d..6129d1742 100644 --- a/README.rst +++ b/README.rst @@ -11,10 +11,6 @@ :alt: GitHub Workflow Status (🏗 📦 & test & publish/devel) :target: https://github.com/ansible/pylibssh/actions?query=workflow%3A%22%F0%9F%8F%97+%F0%9F%93%A6+%26+test+%26+publish%22+branch%3Adevel -.. image:: https://img.shields.io/github/workflow/status/ansible/pylibssh/%F0%9F%9A%A8/devel?label=GitHub%20Actions%20%5Bquality%5D&logo=github - :target: https://github.com/ansible/pylibssh/actions?query=workflow%3A%F0%9F%9A%A8+branch%3Adevel - :alt: GitHub Workflow Status (🚨/devel) - .. image:: https://img.shields.io/codecov/c/gh/ansible/pylibssh/devel?logo=codecov&logoColor=white :target: https://codecov.io/gh/ansible/pylibssh :alt: devel branch coverage via Codecov