Skip to content

Commit

Permalink
Use extra action for running server in the background
Browse files Browse the repository at this point in the history
  • Loading branch information
p3k committed Feb 10, 2024
1 parent 61b7c50 commit 3ebce7d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- run: |
command -v curl
command -v jq
# - run: make install
# - run: |
# make server &
# #sh ./test.sh
# kill %1
- name: Install dependencies
run: make install

- name: Run Entrecote tests
run: .venv/bin/python3 entrecote.py

- name: Run development server
uses: JarvusInnovations/background-action@v1
with:
run: make server &
wait-on: http://127.0.0.1:8000
log-output-if: failure

- name: Run Roxy and Ferris tests
run: sh ./test.sh
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
app = Flask(__name__)


@app.route('/')
def welcome():
return make_response("JSON3k services ready.")

@app.route('/roxy')
def roxy_service():
return roxy(request, make_response)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==2.3.2
mod-wsgi-standalone==4.9.4
#mod-wsgi-standalone==4.9.4
pupdb==0.1.4

0 comments on commit 3ebce7d

Please sign in to comment.