Skip to content

Commit

Permalink
Add separate test for wsgi dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
p3k committed Feb 10, 2024
1 parent 7fe7bfc commit 6ee4dc2
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Run tests

on:
push:
branches:
- main
push

jobs:
build:
test:
runs-on: ubuntu-latest

strategy:
Expand All @@ -24,15 +22,28 @@ jobs:
- name: Install dependencies
run: make install

- name: Run Entrecote tests
run: .venv/bin/python3 entrecote.py
- name: Install wsgi dependency
if: ${{ contains(github.ref, 'mod-wsgi-standalone') }}
run: make wsgi

- name: Run development server
if: ${{ !contains(github.ref, 'mod-wsgi-standalone') }}
uses: JarvusInnovations/background-action@v1
with:
run: make server &
wait-on: http://127.0.0.1:8000
log-output-if: failure

- name: Run wsgi server
if: ${{ contains(github.ref, 'mod-wsgi-standalone') }}
uses: JarvusInnovations/background-action@v1
with:
run: make wsgi-server &
wait-on: http://127.0.0.1:8000
log-output-if: failure

- name: Run Roxy and Ferris tests
run: sh ./test.sh

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

0 comments on commit 6ee4dc2

Please sign in to comment.