diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml new file mode 100644 index 0000000..6f2e3cb --- /dev/null +++ b/.github/workflows/python-build.yml @@ -0,0 +1,30 @@ +name: Python package + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.6", "3.7", "3.8", "3.9"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install wavefront_pyformance + + - name: Test + run: python -m unittest discover \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index aef2d36..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: python -python: - - "2.7" - - "3.3" - - "3.4" - - "3.5" - - "3.6" - -install: - - pip install wavefront_pyformance - -script: - - python -m unittest discover diff --git a/README.md b/README.md index 3eba0f9..c476c09 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This is a Wavefront python wrapper for AWS Lambda python function handler to send metrics directly to wavefront. ## Requirements -Python 2.7 or 3.6. +Python 3.6 or above ## Installation To install from PyPi