From 9c15375fac33dc51d58ed17c373fd85cbe2e524d Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 7 Jan 2024 15:29:45 -0500 Subject: [PATCH] Create Unit-Tests.yml --- .github/workflows/Unit-Tests.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/Unit-Tests.yml diff --git a/.github/workflows/Unit-Tests.yml b/.github/workflows/Unit-Tests.yml new file mode 100644 index 0000000..b9633a1 --- /dev/null +++ b/.github/workflows/Unit-Tests.yml @@ -0,0 +1,30 @@ +name: Run Blackboard Session Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install backend dependencies + run: | + python -m pip install --upgrade pip + pip install -r backend/requirements.txt + + - name: Run tests + run: | + python backend/test_blackboard_scraper.py