-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (40 loc) · 1.36 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Run tests
on:
push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# Unfortunately, the wsgi dependency fails with pypy versions
#python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: make install
- 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