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

chore(dependabot): Configure dependabot to update actions #145

Merged
merged 5 commits into from
Jul 16, 2024
Merged
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
2 changes: 1 addition & 1 deletion .ci/download_zlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
set -e

ZLIB_VERSION=1.3
ZLIB_VERSION=1.3.1

curl -o zlib.tar.gz https://www.zlib.net/zlib-${ZLIB_VERSION}.tar.gz

Expand Down
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
groups:
actions-infrastructure:
patterns:
- "actions/*"
third-party:
patterns:
- "docker/*"
- "pypa/*"
50 changes: 6 additions & 44 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ defaults:
run:
shell: bash


jobs:

# Quick tests run on all OSes/python versions
Expand All @@ -37,12 +36,11 @@ jobs:
ENV_DIR: ./test.env

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Create test environment
run: bash ./.ci/create_test_env.sh "$ENV_DIR"
- name: Log test environment
Expand Down Expand Up @@ -108,12 +106,11 @@ jobs:
ENV_DIR: ./test.env

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: x64
- name: Create test environment
run: bash ./.ci/create_test_env.sh "$ENV_DIR"
- name: Log test environment
Expand Down Expand Up @@ -220,46 +217,11 @@ jobs:
ENV_DIR: ./test.env

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: "x64"
- name: Create test environment
run: bash ./.ci/create_test_env.sh "$ENV_DIR"
- name: Log test environment
run: |
source ./.ci/activate_env.sh "$ENV_DIR"
python -V
pip freeze
- name: Build indexed_gzip
run: bash ./.ci/build_dev_indexed_gzip.sh "$ENV_DIR"
- name: Run tests
run: bash ./.ci/run_tests.sh "$ENV_DIR"


# Tests on 32 bit platform
test-32bit:
runs-on: ubuntu-latest
container: i386/ubuntu:20.04
strategy:
matrix:
python-version: ["3.9"]
extra-args: ["", "--concat"]

env:
USING_OS_PYTHON: 1
PYTHON_VERSION: ${{ matrix.python-version }}
EXTRA_ARGS: ${{ matrix.extra-args }}
ENV_DIR: ./test.env

steps:
- name: Install git
run: apt-get update -y && apt-get install -y git
- uses: actions/checkout@v1
- name: Install system dependencies
run: bash ./.ci/install_32bit_dependencies.sh
- name: Create test environment
run: bash ./.ci/create_test_env.sh "$ENV_DIR"
- name: Log test environment
Expand Down
40 changes: 2 additions & 38 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ jobs:
ENV_DIR: ./test.env

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Create test environment
run: bash ./.ci/create_test_env.sh "$ENV_DIR"
- name: Log test environment
Expand All @@ -48,38 +47,3 @@ jobs:
run: bash ./.ci/build_dev_indexed_gzip.sh "$ENV_DIR"
- name: Run tests
run: bash ./.ci/run_tests.sh "$ENV_DIR"


# Quick tests on 32 bit platform
test-32bit:
runs-on: ubuntu-latest
container: i386/ubuntu:20.04
strategy:
matrix:
python-version: ["3.9"]
extra-args: ["", "--concat"]

env:
USING_OS_PYTHON: 1
PYTHON_VERSION: ${{ matrix.python-version }}
TEST_SUITE: "not slow_test"
EXTRA_ARGS: ${{ matrix.extra-args }}
ENV_DIR: ./test.env

steps:
- name: Install git
run: apt-get update -y && apt-get install -y git
- uses: actions/checkout@v1
- name: Install system dependencies
run: bash ./.ci/install_32bit_dependencies.sh
- name: Create test environment
run: bash ./.ci/create_test_env.sh "$ENV_DIR"
- name: Log test environment
run: |
source ./.ci/activate_env.sh "$ENV_DIR"
python -V
pip freeze
- name: Build indexed_gzip
run: bash ./.ci/build_dev_indexed_gzip.sh "$ENV_DIR"
- name: Run tests
run: bash ./.ci/run_tests.sh "$ENV_DIR"
32 changes: 16 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"

- name: Build sdist
run: python setup.py sdist

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: sdist
path: ./dist/*.tar.gz
Expand All @@ -40,16 +40,16 @@ jobs:
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"

- name: Build wheels
run: bash ./.ci/build_wheels.sh

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheels
path: ./dist/*.whl
Expand All @@ -67,16 +67,16 @@ jobs:
CIBW_ARCHS_WINDOWS: ${{ matrix.arch }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"
- name: Download zlib
run: bash ./.ci/download_zlib.sh
- name: Build wheels
run: bash ./.ci/build_wheels.sh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheels
path: ./dist/*.whl
Expand All @@ -95,17 +95,17 @@ jobs:
CIBW_ARCHS_LINUX: ${{ matrix.arch }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"
- name: Set up QEMU for emulated (e.g. ARM) builds
if: ${{ matrix.arch == 'aarch64' }}
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Build wheels
run: bash ./.ci/build_wheels.sh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheels
path: ./dist/*.whl
Expand All @@ -118,18 +118,18 @@ jobs:
steps:

- name: Download source archive
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: sdist
path: dist/
- name: Download wheel archives
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: wheels
path: dist/

- name: Publish archives to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
26 changes: 13 additions & 13 deletions .github/workflows/test_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"

- name: Build sdist
run: python setup.py sdist

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: sdist
path: ./dist/*.tar.gz
Expand All @@ -39,16 +39,16 @@ jobs:
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"

- name: Build wheels
run: bash ./.ci/build_wheels.sh

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheels
path: ./dist/*.whl
Expand All @@ -66,16 +66,16 @@ jobs:
CIBW_ARCHS_WINDOWS: ${{ matrix.arch }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"
- name: Download zlib
run: bash ./.ci/download_zlib.sh
- name: Build wheels
run: bash ./.ci/build_wheels.sh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheels
path: ./dist/*.whl
Expand All @@ -94,17 +94,17 @@ jobs:
CIBW_ARCHS_LINUX: ${{ matrix.arch }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"
- name: Set up QEMU for emulated (e.g. ARM) builds
if: ${{ matrix.arch == 'aarch64' }}
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Build wheels
run: bash ./.ci/build_wheels.sh
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheels
path: ./dist/*.whl
Loading