Skip to content

Commit

Permalink
Merge pull request #141 from IBM/github-action
Browse files Browse the repository at this point in the history
GitHub action
  • Loading branch information
omkar-g authored Nov 16, 2023
2 parents ff16ff7 + de54998 commit f7ed250
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 16 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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: Unit test

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.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run script
run: |
bash ./unit-test.sh
echo "End Unit Tests..."
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion travis.sh → unit-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ CONNECTORS=(
aws
azure
cybereason
gcp
okta
proofpoint
qualys
randori
rhacs
# reference_connector
tanium
)

set -e
Expand Down

0 comments on commit f7ed250

Please sign in to comment.