Skip to content

Commit

Permalink
Merge pull request #824
Browse files Browse the repository at this point in the history
Updates action versions and add dependabot to check monthly for updates
  • Loading branch information
dvarrazzo committed May 30, 2024
2 parents 179743e + 21f16c7 commit cabf9a1
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 14 deletions.
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion .github/workflows/3rd-party-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
38 changes: 28 additions & 10 deletions .github/workflows/packages-bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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


Expand Down Expand Up @@ -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:
Expand All @@ -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


Expand Down Expand Up @@ -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:
Expand All @@ -235,9 +238,24 @@ 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


# }}}

merge:
runs-on: ubuntu-latest
needs:
- linux
- macos-14
- macos-12
- windows
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: psycopg-binary-artifact
delete-merged: true
14 changes: 13 additions & 1 deletion .github/workflows/packages-pool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -56,3 +57,14 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
merge:
runs-on: ubuntu-latest
needs:
- sdist
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: psycopg-pool-artifact
delete-merged: true
13 changes: 12 additions & 1 deletion .github/workflows/packages-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -64,3 +65,13 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
merge:
runs-on: ubuntu-latest
needs:
- sdist
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: psycopg-src-artifact
delete-merged: true

0 comments on commit cabf9a1

Please sign in to comment.