Skip to content
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
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ jobs:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install Python dependencies
run: |
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install .[dev]
- name: Install Serverless Framework
run: sudo yarn global add serverless --prefix /usr/local
- name: Install Crossbuild Deps
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/update_deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: update-deps

on:
schedule:
- cron: "0 10 * * *" # Run at 10 am every day

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Update Dependencies
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
source $HOME/.poetry/env
poetry build
poetry update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: update dependencies
title: Update Dependencies
body: |
Autogenerated PR to update all deps to latest versions
branch: update-dependencies
6 changes: 5 additions & 1 deletion datadog_lambda/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# The minor version corresponds to the Lambda layer version.
# E.g.,, version 0.5.0 gets packaged into layer version 5.
__version__ = "3.49.0"
try:
import importlib.metadata as importlib_metadata
except ModuleNotFoundError:
import importlib_metadata

__version__ = importlib_metadata.version(__name__)

import os
import logging
Expand Down
Loading