Skip to content

Add files via upload #16

Add files via upload

Add files via upload #16

Workflow file for this run

name: Python Tests
on:
push:
branches:
- main # Run tests on pushes to the main branch
pull_request:
branches:
- main # Run tests on pull requests to the main branch
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run unit tests
run: |
python -m unittest discover tests
- name: Send notification on failure
if: failure() # This step runs only if the workflow fails
uses: actions/github-script@v7
with:
script: |
github.issues.createComment({
issue_number: context.issue.number,
body: "🚨 Tests failed! Please check the workflow logs for details."
})