Skip to content

Commit 0dbd98c

Browse files
authoredAug 18, 2023
Add git workflow (#5)
* Add git workflow
1 parent 128d8c4 commit 0dbd98c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
 

‎.github/workflows/run-tests.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: RAI Workflow Manager Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
Run-Fraud-Tests:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
15+
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
16+
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
17+
18+
# Install Python
19+
- run: echo "Installing Python"
20+
- uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.9'
23+
24+
# Checkout code repo
25+
- name: Check out repository code
26+
uses: actions/checkout@v3
27+
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
28+
29+
- name: Install Python dependencies
30+
run: |
31+
pip install -r $GITHUB_WORKSPACE/requirements.txt
32+
pip install $GITHUB_WORKSPACE
33+
34+
# Run Workflow tests
35+
- name: Python Workflow Manager tests
36+
run: |
37+
cd $GITHUB_WORKSPACE/test
38+
python -m unittest discover

0 commit comments

Comments
 (0)
Please sign in to comment.