тесты

This commit is contained in:
DarkShyMW
2025-08-23 10:11:53 +03:00
parent d01d58cc7f
commit c9a3d40458
5 changed files with 60 additions and 65 deletions

View File

@@ -1,29 +1,33 @@
name: Tests
name: Python application
on:
push:
branches: [ "main" ]
branches: [ main ]
pull_request:
branches: [ "main" ]
branches: [ main ]
jobs:
test:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
strategy:
matrix:
python-version: [3.11]
- name: Set up Python
uses: actions/setup-python@v5
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-asyncio
pip install pytest
- name: Run tests
run: pytest
- name: Run selected tests
run: |
pytest tests/test_fetch.py tests/test_post.py --maxfail=1 --disable-warnings -q