Skip to content

Commit

Permalink
Alternative attempt to run api server in background
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmackaij committed Feb 14, 2024
1 parent d98b30a commit bc11d3b
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,8 @@ jobs:
poetry config virtualenvs.create false
poetry install
- name: Start the test server in the background
uses: JarvusInnovations/background-action@v1
with:
run: |
inv start-api
wait-on: |
http://localhost:8000
# IMPORTANT: to use environment variables in wait-on, you must use this form: ${{ env.VAR }}
# See wait-on section below for all resource types and prefixes
tail: true # true = stderr,stdout
# This will allow you to monitor the progress live
log-output-resume: stderr
# Eliminates previosuly output stderr log entries from post-run output
wait-for: 1m
log-output: stderr,stdout # same as true
log-output-if: failure
run: |
inv start-api &
- name: Run tests
run: |
inv tests
Expand Down

0 comments on commit bc11d3b

Please sign in to comment.