From 707c227cbff5538a7a6f4e97261eeb3100fa4471 Mon Sep 17 00:00:00 2001 From: Sebastian Weigand Date: Mon, 24 Jan 2022 09:23:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=F0=9F=9A=87=20Only=20run=20check-m?= =?UTF-8?q?aifest=20on=20the=20CI=20(#967)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔧🚇 Only run check-maifest on the CI * 🚧 Added change to changelog --- .github/workflows/CI_CD_actions.yml | 17 ++++++++++++++++- .pre-commit-config.yaml | 5 ----- changelog.md | 3 ++- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/CI_CD_actions.yml b/.github/workflows/CI_CD_actions.yml index f8123d88c..f82d0be7b 100644 --- a/.github/workflows/CI_CD_actions.yml +++ b/.github/workflows/CI_CD_actions.yml @@ -13,6 +13,21 @@ jobs: - name: Run pre-commit uses: pre-commit/action@v2.0.3 + check-manifest: + name: Check Manifest + runs-on: ubuntu-latest + steps: + - name: Check out repo + uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install check manifest + run: python -m pip install check-manifest + - name: Run check manifest + run: check-manifest + docs: runs-on: ubuntu-latest steps: @@ -88,7 +103,7 @@ jobs: test: runs-on: ${{ matrix.os }} - needs: pre-commit + needs: [pre-commit, check-manifest] strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e2956098..8ba0675c0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -145,8 +145,3 @@ repos: types: [file] types_or: [python, pyi, markdown, rst, jupyter] args: [-L doas] - - - repo: https://github.com/mgedmin/check-manifest - rev: "0.47" - hooks: - - id: check-manifest diff --git a/changelog.md b/changelog.md index 22bba88df..9c4d50aea 100644 --- a/changelog.md +++ b/changelog.md @@ -22,7 +22,8 @@ ### 🚧 Maintenance - 🔧 Improve packaging tooling (#923) - 🔧🚇 Exclude test files from duplication checks on sonarcloud (#959) +- 🔧🚇 Exclude test files from duplication checks on sonarcloud (#959) +- 🔧🚇 Only run check-maifest on the CI #967 ## 0.5.1 (2021-12-31)