From fcbd8d001ddbd46f053259522e11771be428188a Mon Sep 17 00:00:00 2001 From: manascb1344 Date: Tue, 15 Oct 2024 01:39:59 +0530 Subject: [PATCH] Added GitHub Actions workflow for running tests --- .github/workflows/run-tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/run-tests.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..7df862c --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,27 @@ +name: Run Tests + +on: + 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@v4 + with: + python-version: '3.x' + + - name: Install Dependencies + run: | + pip install -r requirements.txt + + - name: Run Tests + run: | + pytest tests