-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: initial commit * chore: cleanup * fix: code fix * test: added tests * test: updated trigger * test: updated nltk lib * test: updated flask test * test: optimized testing
- Loading branch information
1 parent
af4294f
commit 3241cff
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Crawl Workflow | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m venv .env | ||
source .env/bin/activate | ||
pip install -r requirements.txt | ||
- name: Test crawler and indexer | ||
run: | | ||
source .env/bin/activate | ||
python3 -m src.phantom --num_threads 2 --urls "https://github.com/AnsahMohammad" "https://github.com/AnsahMohammad" --sleep 6 | ||
python3 -m nltk.downloader stopwords | ||
python3 -m nltk.downloader punkt | ||
python3 -m src.phantom_indexing | ||
echo "Crawling completed" | ||
- name: test search Engine server | ||
run: | | ||
source .env/bin/activate | ||
python3 phantom.py & | ||
sleep 10 | ||
curl -f http://localhost:5000/ | ||
echo "Flask test completed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters