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

Keep GitHub Actions up to date with GitHub's Dependabot #416

Closed
Closed
Show file tree
Hide file tree
Changes from all 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
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Keep GitHub Actions up to date with GitHub's Dependabot...
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
version: 2
updates:
- package-ecosystem: github-actions
directory: /
groups:
github-actions:
patterns:
- "*" # Group all Actions updates into a single larger pull request
schedule:
interval: monthly
36 changes: 19 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,30 @@ jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
os: [ubuntu-latest]
include:
- os: macos-latest
python: 3.12
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: setup.py
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel
python -m pip install -U twine
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade twine
- name: Install greenlet (non-Mac)
if: ${{ ! startsWith(runner.os, 'Mac') }}
run: |
python -m pip wheel --wheel-dir ./dist .
python -m pip install -U -e ".[test,docs]"
python -m pip install --upgrade --editable ".[test,docs]"
env:
# Ensure we test with assertions enabled.
# As opposed to the manylinux builds, which we distribute and
Expand All @@ -58,7 +59,7 @@ jobs:
if: startsWith(runner.os, 'Mac')
run: |
python -m pip wheel --wheel-dir ./dist .
python -m pip install -U -e ".[test,docs]"
python -m pip install --upgrade --editable ".[test,docs]"
ls -l dist
# Something in the build system isn't detecting that we're building for both,
# so we're getting tagged with just x86_64. Force the universal2 tag.
Expand All @@ -80,7 +81,7 @@ jobs:
ls -l dist
twine check dist/*
- name: Store greenlet wheel
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: greenlet-${{ runner.os }}-${{ matrix.python-version }}.whl
path: dist/*whl
Expand All @@ -97,7 +98,7 @@ jobs:
# We only need to do this on one version.
# We do this here rather than a separate job to avoid the compilation overhead.
run: |
pip install -U pylint
pip install --upgrade pylint
python -m pylint --rcfile=.pylintrc greenlet

- name: Publish package to PyPI (mac)
Expand All @@ -116,17 +117,17 @@ jobs:
# required for all workflows
security-events: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: setup.py
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools wheel
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
# Set the `CODEQL-PYTHON` environment variable to the Python executable
# that includes the dependencies
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
Expand All @@ -151,6 +152,7 @@ jobs:
runs-on: ubuntu-latest
# We use a regular Python matrix entry to share as much code as possible.
strategy:
fail-fast: false
matrix:
python-version: [3.9]
image:
Expand All @@ -165,26 +167,26 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build and test greenlet
env:
DOCKER_IMAGE: quay.io/pypa/${{ matrix.image }}
run: bash ./make-manylinux
- name: Store greenlet wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: wheelhouse/*whl
name: ${{ matrix.image }}_wheels.zip
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
uses: pypa/gh-action-pypi-publish@v1.9.0
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
user: __token__
Expand Down
Loading