monitor backend #4114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: monitor backend | |
on: | |
schedule: | |
- cron: '10 * * * *' | |
workflow_dispatch: | |
jobs: | |
monitor-backend: | |
runs-on: ubuntu-latest | |
env: | |
API_URL: https://rssfilter.sgn.space/api | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
cache: pip | |
- name: Install dependencies | |
working-directory: backend | |
run: pip install -r requirements.txt | |
- name: Run monitoring tests | |
working-directory: backend | |
run: python -m pytest --junitxml=junit/monitoring-results.xml -lvv tests/e2e/test_e2e_all.py | |
- name: Upload pytest test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pytest-results | |
path: backend/junit/monitoring-results.xml | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} |