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

Upstream changes #41

Merged
merged 21 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
7ed4712
Update flake8 requirement from ~=6.0 to ~=7.0
dependabot[bot] Jan 8, 2024
bc00e3b
Merge pull request #30 from webis-de/dependabot/pip/flake8-approx-eq-7.0
janheinrichmerker Jan 8, 2024
426f819
Update pyarrow requirement from ~=14.0.0 to ~=15.0.0
dependabot[bot] Jan 22, 2024
3554fc7
Merge pull request #31 from webis-de/dependabot/pip/pyarrow-approx-eq…
janheinrichmerker Jan 23, 2024
a279cbc
Update pytest requirement from ~=7.2 to ~=8.0
dependabot[bot] Jan 29, 2024
a1f6e20
Merge pull request #32 from webis-de/dependabot/pip/pytest-approx-eq-8.0
janheinrichmerker Jan 29, 2024
21a46fd
Update approvaltests requirement from ~=10.0 to ~=11.0
dependabot[bot] Feb 26, 2024
74984a8
Update pylint requirement from ~=2.16 to ~=3.1
dependabot[bot] Feb 26, 2024
8a7773a
Update pyproject.toml
janheinrichmerker Feb 26, 2024
01f2080
Merge pull request #34 from webis-de/dependabot/pip/approvaltests-app…
janheinrichmerker Feb 26, 2024
3a34b5a
Merge pull request #35 from webis-de/dependabot/pip/pylint-approx-eq-3.1
janheinrichmerker Feb 26, 2024
d01d5c2
Update dependabot.yml
janheinrichmerker Mar 4, 2024
9cc6467
Bump codecov/codecov-action from 2 to 4
dependabot[bot] Mar 4, 2024
5cdc2d4
Bump actions/checkout from 3 to 4
dependabot[bot] Mar 4, 2024
4d491f7
Bump actions/upload-artifact from 3 to 4
dependabot[bot] Mar 4, 2024
81b06b8
Bump actions/setup-python from 4 to 5
dependabot[bot] Mar 4, 2024
fe3ae4b
Merge pull request #39 from webis-de/dependabot/github_actions/action…
janheinrichmerker Mar 4, 2024
e8315f5
Merge pull request #38 from webis-de/dependabot/github_actions/action…
janheinrichmerker Mar 4, 2024
0a72fcd
Merge pull request #37 from webis-de/dependabot/github_actions/action…
janheinrichmerker Mar 4, 2024
b314779
Merge pull request #36 from webis-de/dependabot/github_actions/codeco…
janheinrichmerker Mar 4, 2024
d1bbe27
Merge branch 'elastic' into patch-1
janheinrichmerker Mar 5, 2024
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
14 changes: 11 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
- package-ecosystem: pip
directory: /
schedule:
interval: "weekly"
interval: weekly
- package-ecosystem: docker
directory: /
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
172 changes: 82 additions & 90 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,173 +1,173 @@
name: "CI"
name: CI

on:
push:

jobs:
python-build:
name: "🏗️ Build Python wheels"
name: 🏗️ Build Python wheels
strategy:
matrix:
python:
- "3.10"
- '3.10'
runs-on: ubuntu-latest
steps:
- name: "📥 Check-out"
- name: 📥 Check-out
uses: actions/checkout@v3
- name: "🧰 Install Protoc"
- name: 🧰 Install Protoc
run: sudo apt install protobuf-compiler
- name: "🧰 Install Python"
- name: 🧰 Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: pyproject.toml
- name: "🧰 Install dependencies"
- name: 🧰 Install dependencies
run: pip install build twine
- name: "🏗️ Build Python wheels"
- name: 🏗️ Build Python wheels
run: python -m build
- name: "🧪 Check package bundles"
- name: 🧪 Check package bundles
run: twine check dist/*
- name: "📤 Upload Python wheels"
- name: 📤 Upload Python wheels
uses: actions/upload-artifact@v3
if: matrix.python == '3.10'
with:
name: wheels
path: dist
python-code-check:
name: "🔍 Check Python code"
name: 🔍 Check Python code
strategy:
matrix:
python:
- "3.10"
- '3.10'
runs-on: ubuntu-latest
steps:
- name: "📥 Check-out"
- name: 📥 Check-out
uses: actions/checkout@v3
- name: "🧰 Install Protoc"
- name: 🧰 Install Protoc
run: sudo apt install protobuf-compiler
- name: "🧰 Install Python"
- name: 🧰 Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: pyproject.toml
- name: "🧰 Install dependencies"
- name: 🧰 Install dependencies
run: pip install .[tests]
- name: "🔍 Check Python code"
- name: 🔍 Check Python code
run: ruff .
python-typing:
name: "🔍 Check Python static typing"
name: 🔍 Check Python static typing
strategy:
matrix:
python:
- "3.10"
- '3.10'
runs-on: ubuntu-latest
steps:
- name: "📥 Check-out"
- name: 📥 Check-out
uses: actions/checkout@v3
- name: "🧰 Install Protoc"
- name: 🧰 Install Protoc
run: sudo apt install protobuf-compiler
- name: "🧰 Install Python"
- name: 🧰 Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: pyproject.toml
- name: "🧰 Install dependencies"
- name: 🧰 Install dependencies
run: pip install .[tests]
- name: "🔍 Check Python static typing"
- name: 🔍 Check Python static typing
run: mypy .
python-security:
name: "🔍 Check Python code security"
name: 🔍 Check Python code security
strategy:
matrix:
python:
- "3.10"
- '3.10'
runs-on: ubuntu-latest
steps:
- name: "📥 Check-out"
- name: 📥 Check-out
uses: actions/checkout@v3
- name: "🧰 Install Protoc"
- name: 🧰 Install Protoc
run: sudo apt install protobuf-compiler
- name: "🧰 Install Python"
- name: 🧰 Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: pyproject.toml
- name: "🧰 Install dependencies"
- name: 🧰 Install dependencies
run: pip install .[tests]
- name: "🔍 Check Python code security"
- name: 🔍 Check Python code security
run: bandit -c pyproject.toml -r .
# python-test:
# name: "🧪 Test Python code"
# strategy:
# matrix:
# python:
# - "3.10"
# runs-on: ubuntu-latest
# steps:
# - name: "📥 Check-out"
# uses: actions/checkout@v3
# - name: "🧰 Install Protoc"
# run: sudo apt install protobuf-compiler
# - name: "🧰 Install Python"
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python }}
# cache: pip
# cache-dependency-path: pyproject.toml
# - name: "🧰 Install dependencies"
# run: pip install .[tests]
# - name: "🧪 Test Python code"
# run: pytest --cov --cov-report=xml archive_query_log
# - name: "📤 Upload coverage to Codecov"
# uses: codecov/codecov-action@v3
# if: matrix.python == '3.10'
# with:
# fail_ci_if_error: true
# token: ${{ secrets.CODECOV_TOKEN }}
python-test:
name: 🧪 Test Python code
strategy:
matrix:
python:
- '3.10'
runs-on: ubuntu-latest
steps:
- name: 📥 Check-out
uses: actions/checkout@v3
- name: 🧰 Install Protoc
run: sudo apt install protobuf-compiler
- name: 🧰 Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
cache-dependency-path: pyproject.toml
- name: 🧰 Install dependencies
run: pip install .[tests]
- name: 🧪 Test Python code
run: pytest --cov --cov-report=xml archive_query_log
- name: 📤 Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.python == '3.10'
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
docker-build:
name: "🏗️ Build Docker image"
name: 🏗️ Build Docker image
runs-on: ubuntu-latest
steps:
- name: "📥 Check-out"
- name: 📥 Check-out
uses: actions/checkout@v3
- name: "🧰 Set up QEMU"
- name: 🧰 Set up QEMU
uses: docker/setup-qemu-action@v2
- name: "🧰 Set up Docker Buildx"
- name: 🧰 Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: "🏗️ Build Docker image"
- name: 🏗️ Build Docker image
uses: docker/build-push-action@v4
with:
context: .
push: false
python-publish:
name: "🚀 Publish Python wheels"
name: 🚀 Publish Python wheels
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs:
- python-build
- python-code-check
- python-typing
- python-security
# - python-test
- python-test
- docker-build
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: "📥 Check-out"
- name: 📥 Check-out
uses: actions/checkout@v3
- name: "📥 Download Python wheels"
- name: 📥 Download Python wheels
uses: actions/download-artifact@v3
with:
name: wheels
path: dist
- name: "🚀 Publish Python wheels"
- name: 🚀 Publish Python wheels
uses: pypa/gh-action-pypi-publish@release/v1
docker-publish:
name: "🚀 Publish Docker image"
name: 🚀 Publish Docker image
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
permissions:
packages: write
Expand All @@ -176,65 +176,57 @@ jobs:
- python-code-check
- python-typing
- python-security
# - python-test
- python-test
- docker-build
runs-on: ubuntu-latest
steps:
- name: "📥 Check-out"
- name: 📥 Check-out
uses: actions/checkout@v3
- name: "🧰 Set up QEMU"
- name: 🧰 Set up QEMU
uses: docker/setup-qemu-action@v2
- name: "🧰 Set up Docker Buildx"
- name: 🧰 Set up Docker Buildx
uses: docker/setup-buildx-action@v2
#- name: "🔑 Login to Docker Hub"
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: "🔑 Login to GitHub Packages"
- name: 🔑 Login to GitHub Packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "ℹ️ Extract image metadata"
- name: ℹ️ Extract image metadata
id: meta
uses: docker/metadata-action@v4
with:
#images: |
# webis/archive-query-log
# ghcr.io/${{ github.repository }}
images: |
ghcr.io/${{ github.repository }}
- name: "🚀 Build and push image"
- name: 🚀 Build and push image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
github-release:
name: "🚀 Create GitHub release"
name: 🚀 Create GitHub release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs:
- python-build
- python-code-check
- python-typing
- python-security
# - python-test
- python-test
- docker-build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: "📥 Check-out"
- name: 📥 Check-out
uses: actions/checkout@v3
- name: "📥 Download Python wheels"
- name: 📥 Download Python wheels
uses: actions/download-artifact@v3
with:
name: wheels
path: dist
- name: "🚀 Create GitHub release"
- name: 🚀 Create GitHub release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ dynamic = ["version"]

[project.optional-dependencies]
tests = [
"approvaltests~=10.0",
"approvaltests~=11.0",
"bandit[toml]~=1.7",
"boto3-stubs[s3]~=1.28",
"mypy~=1.5",
Expand Down
Loading