From 98a2ac5956da5fa2f4983d468f45335c531cd3b2 Mon Sep 17 00:00:00 2001 From: Joshua Moravec Date: Tue, 15 Mar 2022 15:27:07 -0500 Subject: [PATCH 1/2] Move to Github Actions from TravisCI --- .github/workflows/python-build.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 30 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/python-build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml new file mode 100644 index 0000000..4a17384 --- /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: ["2.7", "3.3", "3.4", "3.5", "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 From 0a4ca16d31faaa3f62fb22cdc40240c404b7d9c9 Mon Sep 17 00:00:00 2001 From: Joshua Moravec Date: Tue, 15 Mar 2022 15:29:08 -0500 Subject: [PATCH 2/2] Remove unsupported versions --- .github/workflows/python-build.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index 4a17384..6f2e3cb 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["2.7", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9"] + python-version: ["3.6", "3.7", "3.8", "3.9"] steps: - uses: actions/checkout@v3 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