Skip to content

Commit

Permalink
test(heroku): exercise the real Heroku server command in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Oct 16, 2024
1 parent 63b313e commit 666b21a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ jobs:
runs-on: ubuntu-22.04 # https://devcenter.heroku.com/articles/heroku-22-stack
steps:
- uses: actions/checkout@v4
- name: Get the Python version from runtime.txt, like Heroku does
id: runtime
run: echo "PYTHON_VERSION=$(cat runtime.txt | sed 's/python-//')" >> $GITHUB_ENV
- name: Read the Heroku run time env and cmd
run: |
echo "PYTHON_VERSION=$(cat runtime.txt | sed 's/python-//')" >> $GITHUB_ENV
echo "RUNTIME_CMD=$(cat Profile | sed 's/web: *//')" >> $GITHUB_ENV
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand All @@ -129,7 +130,7 @@ jobs:
pip install -r requirements.txt
bin/post_compile
- name: Launch the API
run: python run_studio.py &
run: ${{ env.RUNTIME_CMD }} &
- name: Run the regular dev suite
run: python run_tests.py dev
- name: Run test-studio
Expand Down

0 comments on commit 666b21a

Please sign in to comment.