From 2cfef9064720d5c34ab417f57921e68add78ebeb Mon Sep 17 00:00:00 2001 From: Jose Palazon Date: Mon, 9 Sep 2024 18:01:28 +0100 Subject: [PATCH] remove workflows --- .github/workflows/lock.yaml | 23 ---------- .github/workflows/pre-commit.yaml | 16 ------- .github/workflows/publish.yaml | 73 ------------------------------- .github/workflows/tests.yaml | 60 ------------------------- 4 files changed, 172 deletions(-) delete mode 100644 .github/workflows/lock.yaml delete mode 100644 .github/workflows/pre-commit.yaml delete mode 100644 .github/workflows/publish.yaml delete mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/lock.yaml b/.github/workflows/lock.yaml deleted file mode 100644 index 22228a1c..00000000 --- a/.github/workflows/lock.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: Lock inactive closed issues -# Lock closed issues that have not received any further activity for two weeks. -# This does not close open issues, only humans may do that. It is easier to -# respond to new issues with fresh examples rather than continuing discussions -# on old issues. - -on: - schedule: - - cron: '0 0 * * *' -permissions: - issues: write - pull-requests: write -concurrency: - group: lock -jobs: - lock: - runs-on: ubuntu-latest - steps: - - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1 - with: - issue-inactive-days: 14 - pr-inactive-days: 14 - discussion-inactive-days: 14 diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml deleted file mode 100644 index 683c85be..00000000 --- a/.github/workflows/pre-commit.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: pre-commit -on: - pull_request: - push: - branches: [main, '*.x'] -jobs: - main: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 - with: - python-version: 3.x - - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 - - uses: pre-commit-ci/lite-action@9d882e7a565f7008d4faf128f27d1cb6503d4ebf # v1.0.2 - if: ${{ !cancelled() }} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index b1b29ec1..00000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,73 +0,0 @@ -name: Publish -on: - push: - tags: - - '*' -jobs: - build: - runs-on: ubuntu-latest - outputs: - hash: ${{ steps.hash.outputs.hash }} - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 - with: - python-version: '3.x' - cache: pip - cache-dependency-path: requirements*/*.txt - - run: pip install -r requirements/build.txt - # Use the commit date instead of the current date during the build. - - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV - - run: python -m build - # Generate hashes used for provenance. - - name: generate hash - id: hash - run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT - - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 - with: - path: ./dist - provenance: - needs: [build] - permissions: - actions: read - id-token: write - contents: write - # Can't pin with hash due to how this workflow works. - uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0 - with: - base64-subjects: ${{ needs.build.outputs.hash }} - create-release: - # Upload the sdist, wheels, and provenance to a GitHub release. They remain - # available as build artifacts for a while as well. - needs: [provenance] - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 - - name: create release - run: > - gh release create --draft --repo ${{ github.repository }} - ${{ github.ref_name }} - *.intoto.jsonl/* artifact/* - env: - GH_TOKEN: ${{ github.token }} - publish-pypi: - needs: [provenance] - # Wait for approval before attempting to upload to PyPI. This allows reviewing the - # files in the draft release. - environment: - name: publish - url: https://pypi.org/project/Flask/${{ github.ref_name }} - runs-on: ubuntu-latest - permissions: - id-token: write - steps: - - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 - - uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0 - with: - repository-url: https://test.pypi.org/legacy/ - packages-dir: artifact/ - - uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0 - with: - packages-dir: artifact/ diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml deleted file mode 100644 index 8e3e553e..00000000 --- a/.github/workflows/tests.yaml +++ /dev/null @@ -1,60 +0,0 @@ -name: Tests -on: - push: - branches: - - main - - '*.x' - paths-ignore: - - 'docs/**' - - '*.md' - - '*.rst' - pull_request: - paths-ignore: - - 'docs/**' - - '*.md' - - '*.rst' -jobs: - tests: - name: ${{ matrix.name || matrix.python }} - runs-on: ${{ matrix.os || 'ubuntu-latest' }} - strategy: - fail-fast: false - matrix: - include: - - {python: '3.13'} - - {python: '3.12'} - - {name: Windows, python: '3.12', os: windows-latest} - - {name: Mac, python: '3.12', os: macos-latest} - - {python: '3.11'} - - {python: '3.10'} - - {python: '3.9'} - - {python: '3.8'} - - {name: PyPy, python: 'pypy-3.10', tox: pypy310} - - {name: Minimum Versions, python: '3.12', tox: py-min} - - {name: Development Versions, python: '3.8', tox: py-dev} - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 - with: - python-version: ${{ matrix.python }} - allow-prereleases: true - cache: pip - cache-dependency-path: requirements*/*.txt - - run: pip install tox - - run: tox run -e ${{ matrix.tox || format('py{0}', matrix.python) }} - typing: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 - with: - python-version: '3.x' - cache: pip - cache-dependency-path: requirements*/*.txt - - name: cache mypy - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 - with: - path: ./.mypy_cache - key: mypy|${{ hashFiles('pyproject.toml') }} - - run: pip install tox - - run: tox run -e typing