ksauraj / jee_counsellor

"Introducing jee_counsellor - a tool to display colleges based on Jee Mains rank. Get personalized informations based on your rank and make informed decisions.
GNU General Public License v3.0
13 stars 8 forks source link

test: make a test configuration file which will work under GitHub branch protection rule. #16

Open ksauraj opened 7 months ago

ksauraj commented 7 months ago

We can utilise GitHub branch protection rule and make a github workflow file to run some tests before merging a pull request.

You can utilise tools like unittest to do so.

This might be a sample for .github/workflows/test.yml file

name: Run Tests

on:
  push:
    branches:
      - main  # Adjust the branch name as needed

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.8  # Adjust the Python version as needed

      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements.txt  # If you have a requirements file

      - name: Run tests
        run: python -m unittest discover -v
praptisharma28 commented 7 months ago

Assign me @ksauraj , will make!

ksauraj commented 7 months ago

Hello @praptisharma28 I really like your interest, but since you are actually working on another issue, I will not be able to assign you this at the moment, but once you complete the prior one, I'll assign you this if available.

hemant933 commented 7 months ago

assign it to me

ksauraj commented 7 months ago

assign it to me

Sure, I'm assigning this to you.