Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Enable github actions
Browse files Browse the repository at this point in the history
1. Adds the github actions to run the tests on macos as the operating
   system
2. This action is triggered on the onset of a push or a pull request
3. the action installs python 3.7 on x64 architecture before running thr
   tests
  • Loading branch information
pramodrj07 authored and ericwb committed Jan 26, 2022
1 parent 5262fea commit 9256a4c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/github-actions-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: test
on : [pull_request, push]
jobs:
mcat-action-test:
runs-on: macos-latest
steps:
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Checkout repository code
uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.7'
architecture: 'x64'

- name: Install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test
run: |
cd ml-conversational-analytic-tool
python -m unittest discover -s tests

0 comments on commit 9256a4c

Please sign in to comment.