Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dependabot config #59

Merged
merged 6 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
actions:
patterns:
- "*"
assignees:
- "@mongodb/dbx-python"
# Python
- package-ecosystem: "pip"
directory: "/bindings/python"
schedule:
interval: "weekly"
assignees:
- "@mongodb/dbx-python"
24 changes: 12 additions & 12 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
CIBW_ARCHS_MACOS: x86_64 universal2
CIBW_TEST_SKIP: '*universal2:arm64'
CIBW_BUILD: "cp38-macosx_universal2 cp38-win* cp38-manylinux_{x86_64,i686}"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: python_bsonjs-3.8-${{ matrix.os }}-wheel
name: ${{ matrix.os }}-wheel
path: ./wheelhouse/*.whl
if-no-files-found: error
test_non_linux_wheels:
Expand All @@ -48,9 +48,9 @@ jobs:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Download a previously created wheel
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: python_bsonjs-3.8-${{ matrix.os }}-wheel
name: wheel-${{ github.run_id }}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look alright?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the way we handled the update from the older versions of the upload/download actions in mongo-arrow.

- name: Test wheel
shell: bash
run: |
Expand All @@ -71,9 +71,9 @@ jobs:
name: Test CPython ${{ matrix.python-version }}-${{ matrix.container }}
steps:
- name: Download a previously created wheel
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: python_bsonjs-3.8-${{ matrix.os }}-wheel
name: wheel-${{ github.run_id }}
- name: Test wheel
run: |
docker run --rm --volume `pwd`:/python quay.io/pypa/${{ matrix.container }} /bin/bash -c "/opt/python/${{ matrix.python-version }}/bin/python -m pip install -U pip && /opt/python/${{ matrix.python-version }}/bin/python -m pip install --find-links=/python/ --no-index python_bsonjs && /opt/python/${{ matrix.python-version }}/bin/python -m pip list | grep python-bsonjs && /opt/python/${{ matrix.python-version }}/bin/python -c 'from bsonjs import dumps'"
Expand All @@ -90,7 +90,7 @@ jobs:
run: |
python -m pip install build
python -m build --sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: "sdist"
path: dist/*.tar.gz
Expand All @@ -100,15 +100,15 @@ jobs:
name: Download Wheels
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: Flatten directory
working-directory: .
run: |
find . -mindepth 2 -type f -exec mv {} . \;
find . -type d -empty -delete
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: all-dist-${{ github.head_ref || github.ref_name }}
name: all-dist-${{ github.run_id }}
path: "./*"
publish:
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi
Expand All @@ -120,9 +120,9 @@ jobs:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: all-dist-${{ github.head_ref || github.ref_name }}
name: all-dist--${{ github.run_id }}
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Loading