Skip to content

Update readme.md

Update readme.md #11

Workflow file for this run

name: Python CI/CD Pipeline
on:
push:
branches:
- main # Trigger on push to 'main' branch (change this if using a different branch)
pull_request:
branches:
- main # Trigger on PR to 'main' branch
jobs:
test:
runs-on: ubuntu-latest # This runs the job on the latest Ubuntu
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12" # Specify the Python version
# Install pre-commit
- name: Install pre-commit
run: |
python -m pip install --upgrade pip
pip install pre-commit
# Install dependencies
- name: Install dependencies
run: |
pip install -r requirements.txt
# Install pre-commit hooks
- name: Install pre-commit hooks
run: pre-commit install
# Run pre-commit hooks
- name: Run pre-commit hooks
run: pre-commit run --all-files # This runs all the hooks on all files
- name: Run tests
run: |
pytest *.py # Run your tests using pytest