diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c27b339..78bbff4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,10 +4,37 @@ on: push: branches: - main + pull_request: + branches: + - main jobs: + configure_build: + name: Run Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: | + python tests.py + deploy: name: Deploy to SSH Server + needs: configure_build + if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest steps: diff --git a/requirements.txt b/requirements.txt index 61a6a90..247c56d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,17 @@ +beautifulsoup4==4.13.3 blinker==1.8.2 +bs4==0.0.2 +certifi==2025.1.31 +charset-normalizer==3.4.1 click==8.1.7 Flask==3.0.3 +flask-cors==5.0.1 +idna==3.10 itsdangerous==2.2.0 Jinja2==3.1.4 MarkupSafe==2.1.5 +requests==2.32.3 +soupsieve==2.6 +typing_extensions==4.12.2 +urllib3==2.3.0 Werkzeug==3.0.4