-
Notifications
You must be signed in to change notification settings - Fork 47
41 lines (38 loc) · 1.06 KB
/
integration.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
name: Integration Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container: mcr.microsoft.com/playwright/python:v1.22.0-focal
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
playwright install chrome --with-deps
- name: Start text server in background
run: |
python -m bulk text tests/data/text.csv --port 5006 & sleep 1
- name: Start vision server in background
run: |
python -m bulk text tests/data/vision.csv --port 7007 & sleep 1
- name: Curl the text server
run: |
curl http://localhost:5006
- name: Curl the vision server
run: |
curl http://localhost:7007
- name: Test with Pytest and Playwright
run: |
# pytest tests/test_web