From 1e7ca7399d52054cef158e59825375aa1014d57c Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 5 Feb 2024 15:09:42 +0100 Subject: [PATCH] revert: don't waste ci --- .github/workflows/codeql-analysis.yml | 69 ----------------------- .github/workflows/copr-builds.yml | 36 ------------ .github/workflows/fedora-tox.yml | 28 --------- .github/workflows/new-issues-to-board.yml | 15 ----- .github/workflows/python-diff-lint.yml | 32 ----------- .github/workflows/shell-diff-lint.yml | 24 -------- 6 files changed, 204 deletions(-) delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/copr-builds.yml delete mode 100644 .github/workflows/fedora-tox.yml delete mode 100644 .github/workflows/new-issues-to-board.yml delete mode 100644 .github/workflows/python-diff-lint.yml delete mode 100644 .github/workflows/shell-diff-lint.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index f92501d83..000000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,69 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ main ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ main ] - schedule: - - cron: '29 4 * * 3' - -permissions: - contents: read - -jobs: - analyze: - permissions: - actions: read # for github/codeql-action/init to get workflow details - contents: read # for actions/checkout to fetch code - security-events: write # for github/codeql-action/analyze to upload SARIF results - name: Analyze - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - language: [ 'python' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] - # Learn more: - # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/copr-builds.yml b/.github/workflows/copr-builds.yml deleted file mode 100644 index 8c5ef9c06..000000000 --- a/.github/workflows/copr-builds.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -name: Fedora Copr build - -on: - push: - branches: [main] - pull_request: - branches: [main] - schedule: - # This always runs against the default branch. Two runs per month. - - cron: '0 0 1,16 * *' - -permissions: - contents: read - -jobs: - build: - runs-on: ubuntu-latest - name: RPM package - strategy: - matrix: - package: - - mock - - mock-core-configs - - steps: - - name: Check out proper version of sources - uses: actions/checkout@v3 - - - name: Copr build ${{ matrix.package }} - env: - COPR_PR_WEBHOOK: https://copr.fedorainfracloud.org/webhooks/custom-dir/@mock/mock-pull-requests:pr:${{github.event.number}}/9d6af83d-7f27-4091-8161-c1098ff5a6dc/${{ matrix.package }}/ - COPR_PUSH_WEBHOOK: ${{ secrets.COPR_PUSH_WEBHOOK }}/${{ matrix.package }}/ - run: | - curl https://raw.githubusercontent.com/praiskup/copr-ci-tooling/main/copr-gh-actions-submit > submit - bash submit ${{ github.event.pull_request.number }} diff --git a/.github/workflows/fedora-tox.yml b/.github/workflows/fedora-tox.yml deleted file mode 100644 index 7d4064414..000000000 --- a/.github/workflows/fedora-tox.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -on: - push: - pull_request: - -name: Run Tox tests -jobs: - tox_test: - name: Tox test - steps: - - uses: actions/checkout@v3 - - name: Run Tox tests - id: test - uses: fedora-python/tox-github-action@main - with: - tox_env: ${{ matrix.tox_env }} - strategy: - matrix: - tox_env: - - py37 - - py38 - - py39 - - py310 - - py311 - - py312 - - # Use GitHub's Linux Docker host - runs-on: ubuntu-latest diff --git a/.github/workflows/new-issues-to-board.yml b/.github/workflows/new-issues-to-board.yml deleted file mode 100644 index a0da204bf..000000000 --- a/.github/workflows/new-issues-to-board.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: Move new issues to issues review - -on: - issues: - types: [opened] - -jobs: - move-new-issue: - runs-on: ubuntu-latest - steps: - - uses: actions/add-to-project@v0.5.0 - with: - project-url: https://github.com/orgs/fedora-copr/projects/1 - github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} diff --git a/.github/workflows/python-diff-lint.yml b/.github/workflows/python-diff-lint.yml deleted file mode 100644 index 48a4be985..000000000 --- a/.github/workflows/python-diff-lint.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: Lint Python issues - -on: - pull_request: - branches: [main] - -jobs: - python-lint-job: - runs-on: ubuntu-latest - steps: - - name: Repository checkout - uses: actions/checkout@v3 - - - name: VCS Diff Lint - uses: fedora-copr/vcs-diff-lint-action@v1 - id: VCS_Diff_Lint - with: - subdirectory: mock - - - if: ${{ always() }} - name: Upload artifact with detected defects in SARIF format - uses: actions/upload-artifact@v3 - with: - name: VCS Diff Lint SARIF - path: ${{ steps.VCS_Diff_Lint.outputs.sarif }} - - - if: ${{ always() }} - name: Upload SARIF to GitHub using github/codeql-action/upload-sarif - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: ${{ steps.VCS_Diff_Lint.outputs.sarif }} diff --git a/.github/workflows/shell-diff-lint.yml b/.github/workflows/shell-diff-lint.yml deleted file mode 100644 index 42a0ee138..000000000 --- a/.github/workflows/shell-diff-lint.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -name: Lint Shell issues - -on: - pull_request: - branches: [main] - -permissions: - contents: read - -jobs: - shell-lint-job: - runs-on: ubuntu-latest - - steps: - - name: Repository checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Differential ShellCheck - uses: redhat-plumbers-in-action/differential-shellcheck@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }}