Skip to content

Commit f8bd04a

Browse files
authored
Add dependabot config (#59)
1 parent 15f8475 commit f8bd04a

File tree

2 files changed

+33
-13
lines changed

2 files changed

+33
-13
lines changed

.github/dependabot.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
updates:
3+
# GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
groups:
9+
actions:
10+
patterns:
11+
- "*"
12+
assignees:
13+
- "@mongodb/dbx-python"
14+
# Python
15+
- package-ecosystem: "pip"
16+
directory: "/bindings/python"
17+
schedule:
18+
interval: "weekly"
19+
assignees:
20+
- "@mongodb/dbx-python"

.github/workflows/release-python.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [macos-12, windows-2019, ubuntu-latest]
22+
os: [macos-14, windows-2019, ubuntu-latest]
2323
name: Build CPython ${{ matrix.python-version }}-${{ matrix.os }}
2424
steps:
2525
- uses: actions/checkout@v4
@@ -28,9 +28,9 @@ jobs:
2828
CIBW_ARCHS_MACOS: x86_64 universal2
2929
CIBW_TEST_SKIP: '*universal2:arm64'
3030
CIBW_BUILD: "cp38-macosx_universal2 cp38-win* cp38-manylinux_{x86_64,i686}"
31-
- uses: actions/upload-artifact@v3
31+
- uses: actions/upload-artifact@v4
3232
with:
33-
name: python_bsonjs-3.8-${{ matrix.os }}-wheel
33+
name: ${{ matrix.os }}-wheel
3434
path: ./wheelhouse/*.whl
3535
if-no-files-found: error
3636
test_non_linux_wheels:
@@ -48,9 +48,9 @@ jobs:
4848
python-version: ${{ matrix.python-version }}
4949
allow-prereleases: true
5050
- name: Download a previously created wheel
51-
uses: actions/download-artifact@v2
51+
uses: actions/download-artifact@v4
5252
with:
53-
name: python_bsonjs-3.8-${{ matrix.os }}-wheel
53+
name: ${{ matrix.os }}-wheel
5454
- name: Test wheel
5555
shell: bash
5656
run: |
@@ -71,9 +71,9 @@ jobs:
7171
name: Test CPython ${{ matrix.python-version }}-${{ matrix.container }}
7272
steps:
7373
- name: Download a previously created wheel
74-
uses: actions/download-artifact@v2
74+
uses: actions/download-artifact@v4
7575
with:
76-
name: python_bsonjs-3.8-${{ matrix.os }}-wheel
76+
name: ${{ matrix.os }}-wheel
7777
- name: Test wheel
7878
run: |
7979
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'"
@@ -90,7 +90,7 @@ jobs:
9090
run: |
9191
python -m pip install build
9292
python -m build --sdist
93-
- uses: actions/upload-artifact@v3
93+
- uses: actions/upload-artifact@v4
9494
with:
9595
name: "sdist"
9696
path: dist/*.tar.gz
@@ -100,15 +100,15 @@ jobs:
100100
name: Download Wheels
101101
steps:
102102
- name: Download all workflow run artifacts
103-
uses: actions/download-artifact@v3
103+
uses: actions/download-artifact@v4
104104
- name: Flatten directory
105105
working-directory: .
106106
run: |
107107
find . -mindepth 2 -type f -exec mv {} . \;
108108
find . -type d -empty -delete
109-
- uses: actions/upload-artifact@v3
109+
- uses: actions/upload-artifact@v4
110110
with:
111-
name: all-dist-${{ github.head_ref || github.ref_name }}
111+
name: all-dist-${{ github.run_id }}
112112
path: "./*"
113113
publish:
114114
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi
@@ -120,9 +120,9 @@ jobs:
120120
id-token: write
121121
steps:
122122
- name: Download all the dists
123-
uses: actions/download-artifact@v3
123+
uses: actions/download-artifact@v4
124124
with:
125-
name: all-dist-${{ github.head_ref || github.ref_name }}
125+
name: all-dist--${{ github.run_id }}
126126
path: dist/
127127
- name: Publish distribution 📦 to PyPI
128128
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)