Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bmm21002 committed Feb 21, 2025
1 parent 824485e commit 7e6ba57
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 7e6ba57

Please sign in to comment.