2023-03-12 13:08:50 +02:00
|
|
|
name: Run tests
|
|
|
|
on:
|
2023-09-16 18:27:49 +02:00
|
|
|
# push:
|
|
|
|
workflow_dispatch:
|
2023-03-12 13:08:50 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.10'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install poetry
|
|
|
|
poetry install
|
|
|
|
|
|
|
|
- name: Run pytest
|
|
|
|
run: |
|
|
|
|
poetry run pytest
|
2023-03-16 19:23:29 +02:00
|
|
|
poetry run mypy .
|
2023-03-12 13:08:50 +02:00
|
|
|
|
|
|
|
- name: Duck Notifier
|
|
|
|
if: failure()
|
|
|
|
uses: appleboy/telegram-action@master
|
|
|
|
with:
|
|
|
|
to: ${{ secrets.TG_CHAT_ID }}
|
|
|
|
token: ${{ secrets.TG_BOT_TOKEN }}
|
2023-09-14 11:50:09 +02:00
|
|
|
message: ❌ S.T.A.R.K. push tests failed on branch ${{ github.ref }}
|