Skip to content

Update README.md

Update README.md #6

Workflow file for this run

name: Python Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Replace with your Python version, e.g., '3.10'
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint and syntax check
run: |
find . -name "*.py" -type f -print0 | while IFS= read -r -d '' file; do
echo "Checking $file"
python -m py_compile "$file" || exit 1
done
- name: Run tests
run: |
if [ -d tests ]; then pytest; else echo "No tests found"; fi