diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..37aee7b --- /dev/null +++ b/.github/workflows/pytest.yml @@ -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 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 84cc3ca..047a1c2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,3 @@ requests==2.32.3 trafilatura==1.11.0 beautifulsoup4==4.12.3 boto3==1.34.144 -pytest==8.2.2 \ No newline at end of file