Skip to content

core:update GitHub Actions workflow #10

core:update GitHub Actions workflow

core:update GitHub Actions workflow #10

Workflow file for this run

name: CI Pipeline
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: pytest
- name: Notify Telex of Test Success
if: success()
run: |
curl -X POST -H "Content-Type: application/json" -d '{
"event_name": "ci_pipeline",
"username": "GitHub Actions",
"status": "success",
"message": "✅ Tests passed successfully for commit ${{ github.sha }} on branch ${{ github.ref_name }}."
}' ${{ secrets.TELEX_WEBHOOK_URL }}
- name: Notify Telex of Test Failure
if: failure()
run: |
curl -X POST -H "Content-Type: application/json" -d '{
"event_name": "ci_pipeline",
"username": "GitHub Actions",
"status": "failure",
"message": "❌ Tests failed for commit ${{ github.sha }} on branch ${{ github.ref_name }}."
}' ${{ secrets.TELEX_WEBHOOK_URL }}