From 0fc1c8a274e22a60560b7facb00cc81b484e0622 Mon Sep 17 00:00:00 2001 From: Rikko Date: Wed, 31 Aug 2022 06:32:58 +0530 Subject: [PATCH] Remove redundant ci actions --- .github/workflows/MetaData.yml | 25 ----------------- .../workflows/{flake8.yml => code_style.yml} | 4 +-- .github/workflows/mod-analyze.yml | 27 ------------------- 3 files changed, 2 insertions(+), 54 deletions(-) delete mode 100644 .github/workflows/MetaData.yml rename .github/workflows/{flake8.yml => code_style.yml} (96%) delete mode 100644 .github/workflows/mod-analyze.yml diff --git a/.github/workflows/MetaData.yml b/.github/workflows/MetaData.yml deleted file mode 100644 index 78d8980..0000000 --- a/.github/workflows/MetaData.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: MetaDataCheck - -on: - push: - pull_request: - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.10"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Check MetaData - run: | - echo "Analyzing All Py Files" - for pyfile in $(git ls-files '*.py'); do - cat $pyfile | grep "# ba_meta require api 7" > /dev/null || (echo "$pyfile doesn't have the MetaData present in it." && exit 1) - done - echo "All Py Files have MetaData present in them." diff --git a/.github/workflows/flake8.yml b/.github/workflows/code_style.yml similarity index 96% rename from .github/workflows/flake8.yml rename to .github/workflows/code_style.yml index 13e470d..d68a906 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/code_style.yml @@ -1,6 +1,6 @@ -name: Flake8 +name: Code Style -on: +on: push: pull_request: diff --git a/.github/workflows/mod-analyze.yml b/.github/workflows/mod-analyze.yml deleted file mode 100644 index 8e2d595..0000000 --- a/.github/workflows/mod-analyze.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: PluginCheck - -on: - push: - pull_request: - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.10"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - sudo apt install jq - - name: Analysing mods - run: | - for jsonfile in $(git ls-files '*.json'); do - echo "Analyzing $jsonfile" - jq -e < $jsonfile > /dev/null || exit 1; - done