Skip to content

Merge pull request #40 from XPOZpublic/update-readme-2 #34

Merge pull request #40 from XPOZpublic/update-readme-2

Merge pull request #40 from XPOZpublic/update-readme-2 #34

Workflow file for this run

name: Tests
on:
push:
branches: [main]
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run tests
env:
XPOZ_API_KEY: ${{ secrets.XPOZ_API_KEY }}
run: pytest tests/ -v
notify-failure:
runs-on: ubuntu-latest
needs: [test]
if: always() && contains(needs.*.result, 'failure')
steps:
- uses: slackapi/slack-github-action@v2.1.1
with:
webhook: ${{ secrets.SLACK_DEPLOYMENT_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
{
"text": "❌ **TESTS FAILED**\nxpoz-sdk@${{ github.sha }}\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>"
}