From 5975496ab343996681bc697ba94630bdc30f01a4 Mon Sep 17 00:00:00 2001 From: Raymond Fung Date: Sun, 11 Aug 2024 17:35:48 +0100 Subject: [PATCH] Remove unnecessary tests --- .github/dependabot.yml | 30 ---------- .github/workflows/check-md-link.yml | 16 ----- .github/workflows/license_check.yml | 28 --------- .github/workflows/python-ci-docs.yml | 56 ------------------ .github/workflows/python-release.yml | 88 ---------------------------- .github/workflows/stale.yml | 49 ---------------- 6 files changed, 267 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/check-md-link.yml delete mode 100644 .github/workflows/license_check.yml delete mode 100644 .github/workflows/python-ci-docs.yml delete mode 100644 .github/workflows/python-release.yml delete mode 100644 .github/workflows/stale.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 44c1f02f8e..0000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,30 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -version: 2 -updates: - - package-ecosystem: "pip" - directory: "/" - schedule: - interval: "daily" - open-pull-requests-limit: 5 - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" diff --git a/.github/workflows/check-md-link.yml b/.github/workflows/check-md-link.yml deleted file mode 100644 index eec019a19c..0000000000 --- a/.github/workflows/check-md-link.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Check Markdown links - -on: - push: - paths: - - mkdocs/** - branches: - - 'main' - pull_request: - -jobs: - markdown-link-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: gaurav-nelson/github-action-markdown-link-check@v1 diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml deleted file mode 100644 index 9408a3a046..0000000000 --- a/.github/workflows/license_check.yml +++ /dev/null @@ -1,28 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -name: "Run License Check" -on: pull_request - -jobs: - rat: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - - run: dev/check-license diff --git a/.github/workflows/python-ci-docs.yml b/.github/workflows/python-ci-docs.yml deleted file mode 100644 index 0ee8b28c7a..0000000000 --- a/.github/workflows/python-ci-docs.yml +++ /dev/null @@ -1,56 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -name: "Python Docs" -on: - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - docs: - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python }} - - name: Install - working-directory: ./mkdocs - run: pip install -r requirements.txt - - name: Build - working-directory: ./mkdocs - run: mkdocs build --strict - - name: Copy - working-directory: ./mkdocs - run: mv ./site /tmp/site - - name: Push changes to gh-pages branch - run: | - git checkout --orphan gh-pages-tmp - git rm --quiet -rf . - cp -r /tmp/site/* . - git config --global user.name 'GitHub Actions' - git config --global user.email 'actions@github.com' - echo "py.iceberg.apache.org" > CNAME - git add --all - git commit -m 'Publish Python docs' - git push -f origin gh-pages-tmp:gh-pages || true diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml deleted file mode 100644 index 15c56c6f10..0000000000 --- a/.github/workflows/python-release.yml +++ /dev/null @@ -1,88 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -name: "Python Release" - -on: - workflow_dispatch: - inputs: - version: - description: 'Version' - type: string - default: 'main' - - -jobs: - build_wheels: - name: Build wheels on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ ubuntu-22.04, windows-2022, macos-12, macos-13, macos-14 ] - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: actions/setup-python@v5 - with: - python-version: | - 3.8 - 3.11 - - - name: Install poetry - run: pip install poetry - - - name: Set version - run: python -m poetry version "${{ inputs.version }}" - if: "${{ github.event.inputs.version != 'main' }}" - - # Publish the source distribution with the version that's in - # the repository, otherwise the tests will fail - - name: Compile source distribution - run: python3 -m poetry build --format=sdist - if: startsWith(matrix.os, 'ubuntu') - - - name: Build wheels - uses: pypa/cibuildwheel@v2.20.0 - with: - output-dir: wheelhouse - config-file: "pyproject.toml" - env: - # Ignore 32 bit architectures - CIBW_ARCHS: "auto64" - CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8,<3.12" - CIBW_TEST_REQUIRES: "pytest==7.4.2 moto==5.0.1" - CIBW_TEST_EXTRAS: "s3fs,glue" - CIBW_TEST_COMMAND: "pytest {project}/tests/avro/test_decoder.py" - # There is an upstream issue with installing on MacOSX - # https://github.com/pypa/cibuildwheel/issues/1603 - # Ignore tests for pypy since not all dependencies are compiled for it - # and would require a local rust build chain - CIBW_TEST_SKIP: "pp* *macosx*" - - - name: Add source distribution - if: startsWith(matrix.os, 'ubuntu') - run: ls -lah dist/* && cp dist/* wheelhouse/ - - - uses: actions/upload-artifact@v3 - with: - name: "release-${{ github.event.inputs.version }}" - path: ./wheelhouse/* diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 3c98621c2b..0000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,49 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - -name: "Close Stale Issues" -on: - schedule: - - cron: '0 0 * * *' - -permissions: - # All other permissions are set to none - issues: write - -jobs: - stale: - if: github.repository_owner == 'apache' - runs-on: ubuntu-22.04 - steps: - - uses: actions/stale@v9.0.0 - with: - stale-issue-label: 'stale' - exempt-issue-labels: 'not-stale' - days-before-issue-stale: 180 - days-before-issue-close: 14 - # Only close stale issues, leave PRs alone - days-before-pr-stale: -1 - stale-issue-message: > - This issue has been automatically marked as stale because it has been open for 180 days - with no activity. It will be closed in next 14 days if no further activity occurs. To - permanently prevent this issue from being considered stale, add the label 'not-stale', - but commenting on the issue is preferred when possible. - close-issue-message: > - This issue has been closed because it has not received any activity in the last 14 days - since being marked as 'stale'