Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Update library dependency and Github Actions (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
pirgeo authored Jun 21, 2022
1 parent 474e65f commit e3aa577
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 14 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
34 changes: 28 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Dependencies
Expand All @@ -23,16 +23,28 @@ jobs:
- run: tox -e lint

build-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.6', '3.7', '3.8', '3.9', 'pypy3' ]
os:
- 'ubuntu-latest'
- 'windows-latest'
- 'macos-latest'
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- 'pypy3.7'
- 'pypy3.8'
- 'pypy3.9'

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
Expand All @@ -41,3 +53,13 @@ jobs:
pip install -U wheel setuptools tox
- name: Test
run: tox -e py


all-passed:
needs:
- lint
- build-and-test
runs-on: ubuntu-latest
steps:
- name: All checks passed
run: 'true'
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,24 @@ classifiers =
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: System :: Monitoring

[options]
python_requires = >=3.6
python_requires = >=3.7
package_dir=
=src
packages=find_namespace:
install_requires=
opentelemetry-api~=1.11.1
opentelemetry-sdk~=1.11.1
requests~=2.25
dynatrace-metric-utils~=0.1.0b0
dynatrace-metric-utils~=0.2.0

[tool:pytest]
testpaths = test
Expand Down
2 changes: 1 addition & 1 deletion src/dynatrace/opentelemetry/metrics/export/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
Gauge,
Histogram)

VERSION = "0.2.0b0"
VERSION = "0.3.0b0"


def _get_histogram_max(histogram: Histogram):
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[tox]
envlist =
py36
py37
py38
py39
pypy3
py310
pypy37
pypy38
pypy39
lint

[testenv]
Expand Down

0 comments on commit e3aa577

Please sign in to comment.