This commit is contained in:
Askill 2024-07-17 19:49:53 +02:00
parent 413f070304
commit 5d09dd3356
2 changed files with 35 additions and 1 deletions

35
.github/workflows/pytest.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: 'Pytest'
on:
pull_request:
branches:
- '*'
jobs:
pytest:
name: 'Terraform'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
# Checkout the repository to the GitHub Actions runner
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest==8.2.2
pytest tests/watcher_test.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html

View File

@ -4,4 +4,3 @@ requests==2.32.3
trafilatura==1.11.0
beautifulsoup4==4.12.3
boto3==1.34.144
pytest==8.2.2