Skip to content

Add git workflow #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: RAI Workflow Manager Tests

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
Run-Fraud-Tests:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

# Install Python
- run: echo "Installing Python"
- uses: actions/setup-python@v4
with:
python-version: '3.9'

# Checkout code repo
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."

- name: Install Python dependencies
run: |
pip install -r $GITHUB_WORKSPACE/requirements.txt
pip install $GITHUB_WORKSPACE

# Run Workflow tests
- name: Python Workflow Manager tests
run: |
cd $GITHUB_WORKSPACE/test
python -m unittest discover