From b2a3eed5a7b7a1a8799f55cc59be01645b3418d9 Mon Sep 17 00:00:00 2001 From: omkar-g <62765497+omkar-g@users.noreply.github.com> Date: Thu, 9 Nov 2023 10:16:58 -0400 Subject: [PATCH 1/7] Create python-app.yml --- .github/workflows/python-app.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 00000000..836c8186 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,30 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: '**' + pull_request: + branches: [ "develop" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Run script + run: | + bash ./travis.sh + echo "End Unit Tests..." + From c827d5a91327842f05e3df58f1830d40ef18b5d5 Mon Sep 17 00:00:00 2001 From: omkar-g <62765497+omkar-g@users.noreply.github.com> Date: Thu, 9 Nov 2023 10:20:22 -0400 Subject: [PATCH 2/7] Update python-app.yml --- .github/workflows/python-app.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 836c8186..71898734 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -23,6 +23,10 @@ jobs: uses: actions/setup-python@v3 with: python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest - name: Run script run: | bash ./travis.sh From 5f37ad32fe502ae383c1c9c63a22608d1728f7df Mon Sep 17 00:00:00 2001 From: Omkar Gurav Date: Thu, 9 Nov 2023 10:27:32 -0400 Subject: [PATCH 3/7] Delete travis and update connector list --- .travis.yml | 15 --------------- travis.sh => unit-test.sh | 5 ++++- 2 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 .travis.yml rename travis.sh => unit-test.sh (90%) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 39c7bd61..00000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: python -os: - - linux -python: - - "3.9" - -install: - - echo "Starting Travis" - -before_script: - - bash ./travis.sh - - echo "End Unit Tests..." - -script: - - echo "No build required" \ No newline at end of file diff --git a/travis.sh b/unit-test.sh similarity index 90% rename from travis.sh rename to unit-test.sh index 5742db0a..a3306891 100755 --- a/travis.sh +++ b/unit-test.sh @@ -4,12 +4,15 @@ CONNECTORS=( atp aws azure + crowdstrike cybereason + gcp okta proofpoint qualys + randori rhacs - # reference_connector + tanium ) set -e From a27a29b90bde6f447bc330d1452f644d6b20911b Mon Sep 17 00:00:00 2001 From: Omkar Gurav Date: Thu, 9 Nov 2023 10:28:41 -0400 Subject: [PATCH 4/7] Fix action --- .github/workflows/python-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 71898734..4fbd3397 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -29,6 +29,6 @@ jobs: pip install pytest - name: Run script run: | - bash ./travis.sh + bash ./unit-test.sh echo "End Unit Tests..." From 1136f13138da675cf6011fe9a30a408df6b8eeec Mon Sep 17 00:00:00 2001 From: Omkar Gurav Date: Thu, 9 Nov 2023 11:15:44 -0400 Subject: [PATCH 5/7] Remove crowdstrike connector --- unit-test.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/unit-test.sh b/unit-test.sh index a3306891..10829556 100755 --- a/unit-test.sh +++ b/unit-test.sh @@ -4,7 +4,6 @@ CONNECTORS=( atp aws azure - crowdstrike cybereason gcp okta From 7a0bf5d03d8c66ba7665f112818b2c6a0d7d9dff Mon Sep 17 00:00:00 2001 From: Omkar Gurav Date: Thu, 9 Nov 2023 11:28:50 -0400 Subject: [PATCH 6/7] Update name --- .github/workflows/python-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 4fbd3397..8123a2f7 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a single version of Python # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Python application +name: Unit test on: push: From de5499804ba56e72915c57ec42afc396e987130f Mon Sep 17 00:00:00 2001 From: Omkar Gurav Date: Wed, 15 Nov 2023 10:25:15 -0400 Subject: [PATCH 7/7] Reverting back 3.9 python --- .github/workflows/python-app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 8123a2f7..9e930452 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,10 +19,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python 3.9 uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: "3.9" - name: Install dependencies run: | python -m pip install --upgrade pip