From 9e9a35c4cb053ec850da9b28e70e6907f761cef9 Mon Sep 17 00:00:00 2001 From: Yilei Yang Date: Fri, 13 Oct 2023 14:33:09 -0700 Subject: [PATCH] Drop Python 3.7 in the test matrix and add Python 3.12. We will drop Python 3.7 support following Black. PiperOrigin-RevId: 573321121 --- .github/workflows/pypi_upload.yml | 34 ---------------------- .github/workflows/test.yml | 47 ------------------------------- 2 files changed, 81 deletions(-) delete mode 100644 .github/workflows/pypi_upload.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/pypi_upload.yml b/.github/workflows/pypi_upload.yml deleted file mode 100644 index bb13c864afa..00000000000 --- a/.github/workflows/pypi_upload.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Publish to PyPI - -on: - release: - types: [published] - -permissions: - contents: read - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '*' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install --upgrade build twine - - - name: Build package - run: python -m build - - - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.3 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 2f92f9fad30..00000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Test - -on: - push: - paths-ignore: - - "patches/**" - - pull_request: - paths-ignore: - - "patches/**" - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} - cancel-in-progress: true - -jobs: - test: - if: - github.event_name == 'push' || github.event.pull_request.head.repo.full_name != - github.repository - - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11",] - os: [ubuntu-latest, macOS-latest, windows-latest] - - steps: - - uses: actions/checkout@v3 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Install tox - run: | - python -m pip install --upgrade pip - python -m pip install --upgrade tox - - - name: Unit tests - if: "!startsWith(matrix.python-version, 'pypy')" - run: tox -e ci-py -- -v --color=yes