You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
fileThe text was updated successfully, but these errors were encountered: