Skip to content

Workflow file for this run

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 image 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