Skip to content

Commit 5e1bd91

Browse files
authored
Added checks in Github workflow (#10)
* Added checks in Github workflow * Add pull_request trigger to deployment workflow * Update requirements.txt to include additional dependencies * Rename test job to configure_build and update dependencies in the deploy job
1 parent df84064 commit 5e1bd91

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,37 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
branches:
9+
- main
710

811
jobs:
12+
configure_build:
13+
name: Run Tests
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: "3.11"
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r requirements.txt
29+
30+
- name: Run tests
31+
run: |
32+
python tests.py
33+
934
deploy:
1035
name: Deploy to SSH Server
36+
needs: configure_build
37+
if: ${{ github.ref == 'refs/heads/main' }}
1138
runs-on: ubuntu-latest
1239

1340
steps:

requirements.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1+
beautifulsoup4==4.13.3
12
blinker==1.8.2
3+
bs4==0.0.2
4+
certifi==2025.1.31
5+
charset-normalizer==3.4.1
26
click==8.1.7
37
Flask==3.0.3
8+
flask-cors==5.0.1
9+
idna==3.10
410
itsdangerous==2.2.0
511
Jinja2==3.1.4
612
MarkupSafe==2.1.5
13+
requests==2.32.3
14+
soupsieve==2.6
15+
typing_extensions==4.12.2
16+
urllib3==2.3.0
717
Werkzeug==3.0.4

0 commit comments

Comments
 (0)