Skip to content

chore(deps): update dependency datadog to v0.50.0 (#40) #190

chore(deps): update dependency datadog to v0.50.0 (#40)

chore(deps): update dependency datadog to v0.50.0 (#40) #190

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- 'v**'
pull_request:
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Run pre-commit
uses: pre-commit/[email protected]
- name: Test with pytest
run: |
pytest --cov=src tests/
build:
runs-on: ubuntu-latest
name: Build
needs: test
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
steps:
- uses: actions/checkout@v4
- name: Login GHCR
uses: docker/login-action@v3
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ${{ env.REGISTRY }}
- name: Set metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/github-workflows-monitoring
flavor: |
latest=${{ github.event_name != 'pull_request' }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Docker build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
context: .