From d15baf015f5403de1a61694d227ab79d4cdbad7c Mon Sep 17 00:00:00 2001 From: Josh Washburne Date: Tue, 3 Sep 2024 15:19:03 -0400 Subject: [PATCH] Update repo versions. --- .github/workflows/build-pypi.yml | 20 ++++++++++---------- .github/workflows/build-test-pypi.yml | 22 +++++++++++----------- .github/workflows/run-tests.yml | 6 +++--- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build-pypi.yml b/.github/workflows/build-pypi.yml index 5da146c..d145940 100644 --- a/.github/workflows/build-pypi.yml +++ b/.github/workflows/build-pypi.yml @@ -16,11 +16,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.8' - name: Install dependencies @@ -30,7 +30,7 @@ jobs: run: | python -m build --sdist - name: Put SDist in artifact container - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: dist/*.tar.gz - name: Check SDist metadata @@ -44,7 +44,7 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] bitness: [32, 64] - python: [3.6, 3.7, 3.8, 3.9] + python: ["3.8", "3.9", "3.10", "3.11", "3.12"] include: - os: windows-latest bitness: 64 @@ -66,23 +66,23 @@ jobs: bitness: 32 steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - name: Get Python Version Name - uses: mad9000/actions-find-and-replace-string@2 + uses: mad9000/actions-find-and-replace-string@5 id: pythonversion with: source: ${{ matrix.python }} find: '.' replace: '' - name: Build wheels - uses: joerick/cibuildwheel@v1.10.0 + uses: joerick/cibuildwheel@v2.20.0 env: CIBW_BUILD: cp${{ steps.pythonversion.outputs.value }}-${{ matrix.platform_id }} CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}" - name: Upload wheels to artifact container - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: wheelhouse/*.whl @@ -91,12 +91,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Get SDist and wheels from artifact container - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: artifact path: dist - name: Publish wheels to Test PyPI - uses: pypa/gh-action-pypi-publish@v1.4.2 + uses: pypa/gh-action-pypi-publish@v1.10.1 with: user: ${{ secrets.PYPI_USERNAME }} password: ${{ secrets.PYPI_PASSWORD }} diff --git a/.github/workflows/build-test-pypi.yml b/.github/workflows/build-test-pypi.yml index 5577fe8..1030d71 100644 --- a/.github/workflows/build-test-pypi.yml +++ b/.github/workflows/build-test-pypi.yml @@ -16,13 +16,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.12' - name: Install dependencies run: | python -m pip install build twine @@ -30,7 +30,7 @@ jobs: run: | python -m build --sdist - name: Put SDist in artifact container - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: dist/*.tar.gz - name: Check SDist metadata @@ -44,7 +44,7 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] bitness: [32, 64] - python: [3.6, 3.7, 3.8, 3.9] + python: ["3.8", "3.9", "3.10", "3.11", "3.12"] include: - os: windows-latest bitness: 64 @@ -66,23 +66,23 @@ jobs: bitness: 32 steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - name: Get Python Version Name - uses: mad9000/actions-find-and-replace-string@2 + uses: mad9000/actions-find-and-replace-string@5 id: pythonversion with: source: ${{ matrix.python }} find: '.' replace: '' - name: Build wheels - uses: joerick/cibuildwheel@v1.10.0 + uses: joerick/cibuildwheel@v2.20.0 env: CIBW_BUILD: cp${{ steps.pythonversion.outputs.value }}-${{ matrix.platform_id }} CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}" - name: Upload wheels to artifact container - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: path: wheelhouse/*.whl @@ -91,12 +91,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Get SDist and wheels from artifact container - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: artifact path: dist - name: Publish wheels to Test PyPI - uses: pypa/gh-action-pypi-publish@v1.4.2 + uses: pypa/gh-action-pypi-publish@v1.10.1 with: user: ${{ secrets.TEST_PYPI_USERNAME }} password: ${{ secrets.TEST_PYPI_PASSWORD }} diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index e420330..c10975a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -21,11 +21,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install libsndfile if necessary (Linux) @@ -47,7 +47,7 @@ jobs: run: | bash <(curl -s https://codecov.io/bash) if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }} - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: path: coverage.xml if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }} \ No newline at end of file