From 7e6ba5764236efd89ee42b5b542140d970f7dde1 Mon Sep 17 00:00:00 2001 From: Braeden Mchugh Date: Fri, 21 Feb 2025 14:11:09 -0500 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..358dfe6 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Run Tests on Merge + +on: + push: + branches: + - develop + - main + pull_request: + branches: + - develop + - main + +jobs: + test: + runs-on: ubuntu-latest # Use GitHub's free Ubuntu runner + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' # Change this if you're using a different Python version + + - name: Install Dependencies + run: | + pip install --upgrade pip + pip install pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi # Install dependencies if a requirements.txt exists + + - name: Run Tests + run: pytest tests/