From eb3415048f2d2169b954ca3fb10050eecb926eed Mon Sep 17 00:00:00 2001 From: Georg Pirklbauer Date: Fri, 16 Dec 2022 09:57:37 +0100 Subject: [PATCH] Add workflow_dispatch to test all python versions on Github. (#37) --- .github/workflows/python-package.yml | 1 + README.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 7fa78b5..592a8cc 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,6 +5,7 @@ on: branches: [ main ] pull_request: branches: [ main ] + workflow_dispatch: jobs: lint: diff --git a/README.md b/README.md index f8243f4..e66bd23 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ counter.add(25, {"dimension-1": "value-1"}) To run the [example](example/basic_example.py), clone this repository and change to the `opentelemetry-metric-python` folder, then run: ```shell +pip install psutil # the example exports cpu which is retrieved using psutil, this is not required by the exporter. pip install . # install the Dynatrace exporter export LOGLEVEL=DEBUG # (optional) Set the log level to debug to see more output (default is INFO) python example/basic_example.py @@ -112,7 +113,7 @@ Default dimensions are overwritten by attributes passed to instruments, which in ### Requirements -Just [`tox`](https://pypi.org/project/tox/). +Just [`tox`](https://pypi.org/project/tox/). Make sure to `pip install` the `requirements-dev.txt` to get the relevant packages. ### Running tests and lint