From 59f5ad9f3a51aabbc5e764247a1f95ead21df389 Mon Sep 17 00:00:00 2001 From: Trenton Holmes <797416+stumpylog@users.noreply.github.com> Date: Fri, 17 May 2024 18:41:51 -0700 Subject: [PATCH] ci: updates action versions and add dependabot to check monthly for updates --- .github/dependabot.yml | 18 ++++++++++++++++++ .github/workflows/3rd-party-tests.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/packages-bin.yml | 24 ++++++++++++++---------- .github/workflows/packages-pool.yml | 3 ++- .github/workflows/packages-src.yml | 3 ++- 6 files changed, 38 insertions(+), 14 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..8aa828864 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#package-ecosystem + +version: 2 +updates: + + # Enable updates for GitHub Actions + - package-ecosystem: "github-actions" + target-branch: "master" + directory: "/" + schedule: + # Check for updates to GitHub Actions every month + interval: "monthly" + groups: + actions: + update-types: + - "major" + - "minor" + - "patch" diff --git a/.github/workflows/3rd-party-tests.yml b/.github/workflows/3rd-party-tests.yml index 1a5fa794e..11fceac35 100644 --- a/.github/workflows/3rd-party-tests.yml +++ b/.github/workflows/3rd-party-tests.yml @@ -225,7 +225,7 @@ jobs: USE_TZ = False HERE - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ matrix.python-version }}-pip-${{ hashFiles('django_home/django/tests/requirements/py3.txt', 'django_home/django/setup.cfg') }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1dd1e94c9..af58d44e9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Trigger docs build - uses: peter-evans/repository-dispatch@v1 + uses: peter-evans/repository-dispatch@v3 with: repository: psycopg/psycopg-website event-type: psycopg3-commit diff --git a/.github/workflows/packages-bin.yml b/.github/workflows/packages-bin.yml index c4115b7da..8ebc8dc20 100644 --- a/.github/workflows/packages-bin.yml +++ b/.github/workflows/packages-bin.yml @@ -27,14 +27,14 @@ jobs: - name: Set up QEMU for multi-arch build # Check https://github.com/docker/setup-qemu-action for newer versions. - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: # Note: 6.2.0 is buggy: make sure to avoid it. # See https://github.com/pypa/cibuildwheel/issues/1250 image: tonistiigi/binfmt:qemu-v7.0.0 - name: Cache libpq build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/libpq.build key: libpq-${{ matrix.platform }}-${{ matrix.arch }}-${{ env.LIBPQ_VERSION }}-${{ env.OPENSSL_VERSION }} @@ -43,7 +43,7 @@ jobs: run: python3 ./tools/build/copy_to_binary.py - name: Build wheels - uses: pypa/cibuildwheel@v2.16.5 + uses: pypa/cibuildwheel@v2.17.0 with: package-dir: psycopg_binary env: @@ -71,8 +71,9 @@ jobs: PSYCOPG_TEST_WANT_LIBPQ_BUILD=${{ env.LIBPQ_VERSION }} PSYCOPG_TEST_WANT_LIBPQ_IMPORT=${{ env.LIBPQ_VERSION }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: linux-${{matrix.pyver}}-${{matrix.platform}}_${{matrix.arch}} path: ./wheelhouse/*.whl services: @@ -118,7 +119,7 @@ jobs: run: brew services start postgresql@${PG_VERSION} - name: Build wheels - uses: pypa/cibuildwheel@v2.16.5 + uses: pypa/cibuildwheel@v2.17.0 with: package-dir: psycopg_binary env: @@ -134,8 +135,9 @@ jobs: PSYCOPG_TEST_WANT_LIBPQ_BUILD=">= ${PG_VERSION}" PSYCOPG_TEST_WANT_LIBPQ_IMPORT=">= ${PG_VERSION}" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: macos-14-${{matrix.pyver}}-macosx_${{matrix.arch}} path: ./wheelhouse/*.whl @@ -168,7 +170,7 @@ jobs: run: brew services start postgresql@${PG_VERSION} - name: Build wheels - uses: pypa/cibuildwheel@v2.16.5 + uses: pypa/cibuildwheel@v2.17.0 with: package-dir: psycopg_binary env: @@ -184,8 +186,9 @@ jobs: PSYCOPG_TEST_WANT_LIBPQ_BUILD=">= ${PG_VERSION}" PSYCOPG_TEST_WANT_LIBPQ_IMPORT=">= ${PG_VERSION}" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: macos-12-${{matrix.pyver}}-macosx_${{matrix.arch}} path: ./wheelhouse/*.whl @@ -215,7 +218,7 @@ jobs: run: python3 ./tools/build/copy_to_binary.py - name: Build wheels - uses: pypa/cibuildwheel@v2.16.5 + uses: pypa/cibuildwheel@v2.17.0 with: package-dir: psycopg_binary env: @@ -235,8 +238,9 @@ jobs: PSYCOPG_TEST_WANT_LIBPQ_BUILD=">= 14" PSYCOPG_TEST_WANT_LIBPQ_IMPORT=">= 14" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: windows-${{matrix.pyver}}-${{matrix.arch}} path: ./wheelhouse/*.whl diff --git a/.github/workflows/packages-pool.yml b/.github/workflows/packages-pool.yml index db79ec133..7f41fb71a 100644 --- a/.github/workflows/packages-pool.yml +++ b/.github/workflows/packages-pool.yml @@ -39,8 +39,9 @@ jobs: PSYCOPG_TEST_DSN: "host=127.0.0.1 user=postgres" PGPASSWORD: password - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: ${{ matrix.package }}-${{ matrix.format }} path: ./dist/* services: diff --git a/.github/workflows/packages-src.yml b/.github/workflows/packages-src.yml index 6b4f911dd..0e2bd7d82 100644 --- a/.github/workflows/packages-src.yml +++ b/.github/workflows/packages-src.yml @@ -47,8 +47,9 @@ jobs: PSYCOPG_TEST_DSN: "host=127.0.0.1 user=postgres" PGPASSWORD: password - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: ${{ matrix.package }}-${{ matrix.format }}-${{ matrix.impl }} path: ./dist/* services: -- 2.47.2