Skip to content

Commit

Permalink
typo in main:app
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenwatson committed Aug 27, 2023
1 parent 595b608 commit eb14d3d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,23 @@ jobs:

- name: Start JobSpy FastAPI app
run: |
uvicorn my_app:app --host 0.0.0.0 --port 8000 &
uvicorn main:app --host 0.0.0.0 --port 8000 &
- name: Wait for server to be up
run: sleep 10

- name: Verify results count
run: |
curl -X 'POST' -H 'Content-Type: application/json' -d '{
"site_type": ["indeed", "linkedin", "zip_recruiter"], # <-- Added the missing closing double quote here
"site_type": ["indeed", "linkedin", "zip_recruiter"],
"search_term": "software engineer",
"location": "austin, tx",
"distance": 10,
"job_type": "fulltime",
"results_wanted": 5
}' http://0.0.0.0:8000/api/v1/jobs > response.json
# Debugging log
cat response.json # <-- This will print the server response
cat response.json
indeed_results=$(jq '.indeed.returned_results' response.json)
linkedin_results=$(jq '.linkedin.returned_results' response.json)
Expand Down

0 comments on commit eb14d3d

Please sign in to comment.