From 0005bba3c3767f32759dd237a09053de2ae55b1e Mon Sep 17 00:00:00 2001 From: NoDRM Date: Mon, 15 Nov 2021 09:43:12 +0100 Subject: [PATCH] Remove broken CI --- .github/workflows/Format.yaml | 39 ----------------------------------- .github/workflows/Lint.yaml | 26 ----------------------- 2 files changed, 65 deletions(-) delete mode 100644 .github/workflows/Format.yaml delete mode 100644 .github/workflows/Lint.yaml diff --git a/.github/workflows/Format.yaml b/.github/workflows/Format.yaml deleted file mode 100644 index 32f0226..0000000 --- a/.github/workflows/Format.yaml +++ /dev/null @@ -1,39 +0,0 @@ -name: Python code format -on: - push: - branches: master -jobs: - Format: - if: "contains(github.event.head_commit.message, '!format')" - runs-on: ubuntu-20.04 - strategy: - fail-fast: false - steps: - - uses: actions/checkout@main - - name: Set up Python - uses: actions/setup-python@main - with: - python-version: 3.x - - uses: actions/cache@main - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-format - restore-keys: | - ${{ runner.os }}-pip-format - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install autopep8 pycodestyle - - name: Format by autopep8 then Push - env: - GIT_EMAIL: github-actions[bot]@users.noreply.github.com - GIT_ACTOR: github-actions[bot] - run: | - export HASH_SHORT=$(git rev-parse --short HEAD) - git checkout -b format--${HASH_SHORT} - git config --global user.email $GIT_EMAIL - git config --global user.name $GIT_ACTOR - python -m autopep8 --in-place --aggressive --aggressive --experimental -r ./ - git add -A - git commit -m 'Format by autopep8' -m From: -m $(git rev-parse HEAD) - git push --set-upstream origin format--${HASH_SHORT} diff --git a/.github/workflows/Lint.yaml b/.github/workflows/Lint.yaml deleted file mode 100644 index aae3e05..0000000 --- a/.github/workflows/Lint.yaml +++ /dev/null @@ -1,26 +0,0 @@ -name: Python code review -on: [push, pull_request] -jobs: - Test: - runs-on: ubuntu-20.04 - strategy: - fail-fast: false - steps: - - uses: actions/checkout@main - - name: Set up Python - uses: actions/setup-python@main - with: - python-version: 3.x - - uses: actions/cache@main - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-lint - restore-keys: | - ${{ runner.os }}-pip-lint - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 - - name: Lint with flake8 - run: | - python -m flake8 . --builtins=_,I --ignore=E501 --count --benchmark --show-source --statistics