Bump the actions group with 6 updates (#1502)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
This commit is contained in:
dependabot[bot] 2024-02-05 12:30:11 -06:00 committed by GitHub
parent 62c3cb10b5
commit ead6586178
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 47 additions and 33 deletions

View File

@ -53,7 +53,7 @@ jobs:
steps:
- name: Checkout pymongo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
@ -62,7 +62,7 @@ jobs:
export PYTHON_VERSION=$(sed 's/^cp3/3./' <<< ${{ matrix.python }} )
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{env.PYTHON_VERSION}}
cache: 'pip'
@ -71,13 +71,15 @@ jobs:
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Install cibuildwheel
# Note: the default manylinux is manylinux2014
run: python -m pip install "cibuildwheel>=2.4,<3"
run: |
python -m pip install -U pip
python -m pip install "cibuildwheel>=2.4,<3"
- name: Build wheel
if: ${{ matrix.buildplat[0] != 'macos-14' }}
@ -92,7 +94,7 @@ jobs:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
path: ./wheelhouse/*.whl
@ -107,7 +109,7 @@ jobs:
python: ["cp37", "cp38", "cp39"]
steps:
- name: Checkout pymongo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
@ -116,7 +118,7 @@ jobs:
export PYTHON_VERSION=$(sed 's/^cp3/3./' <<< ${{ matrix.python }} )
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{env.PYTHON_VERSION}}
cache: 'pip'
@ -124,7 +126,9 @@ jobs:
allow-prereleases: true
- name: Install cibuildwheel
run: python -m pip install "cibuildwheel>=2.4,<3"
run: |
python -m pip install -U pip
python -m pip install "cibuildwheel>=2.4,<3"
- name: Build manylinux_x86_64
env:
@ -138,7 +142,7 @@ jobs:
CIBW_MANYLINUX_I686_IMAGE: manylinux1
run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.python }}-manylinux1
path: ./wheelhouse/*.whl
@ -152,7 +156,7 @@ jobs:
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
# Build sdist on lowest supported Python
python-version: '3.7'
@ -169,7 +173,7 @@ jobs:
cd ..
python -c "from pymongo import has_c; assert has_c()"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: "sdist"
path: ./dist/*.tar.gz
@ -180,15 +184,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.job }}
path: "./*"
publish:
@ -201,7 +205,7 @@ 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 }}
path: dist/

View File

@ -18,8 +18,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
cache: 'pip'
@ -41,9 +41,9 @@ jobs:
python-version: ["3.7", "3.11", "pypy-3.8"]
name: CPython ${{ matrix.python-version }}-${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
@ -52,7 +52,7 @@ jobs:
run: |
pip install -q tox
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.7.0
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: 4.4
- name: Run tests
@ -63,9 +63,9 @@ jobs:
runs-on: ubuntu-latest
name: DocTest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.8"
cache: 'pip'
@ -74,7 +74,7 @@ jobs:
run: |
pip install -q tox
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.7.0
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: 4.4
- name: Run tests
@ -85,8 +85,8 @@ jobs:
name: Typing Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
@ -102,11 +102,13 @@ jobs:
name: Docs Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
# Build docs on lowest supported Python for furo
python-version: '3.8'
- name: Install dependencies
run: |
pip install -q tox
@ -121,17 +123,19 @@ jobs:
runs-on: ubuntu-latest
name: "Make an sdist"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
# Build sdist on lowest supported Python
python-version: '3.7'
- name: Build SDist
shell: bash
run: |
pip install build
python -m build --sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: "sdist"
path: dist/*.tar.gz
@ -143,22 +147,28 @@ jobs:
timeout-minutes: 20
steps:
- name: Download sdist
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: Unpack SDist
shell: bash
run: |
cd sdist
ls
mkdir test
tar --strip-components=1 -zxf *.tar.gz -C ./test
- uses: actions/setup-python@v2
ls test
- uses: actions/setup-python@v5
with:
cache: 'pip'
cache-dependency-path: 'sdist/test/pyproject.toml'
# Test sdist on lowest supported Python
python-version: '3.7'
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.7.0
uses: supercharge/mongodb-github-action@1.10.0
- name: Run Test
shell: bash
run: |
cd sdist/test
ls
which python
pip install -e ".[test]"
pytest -v