Skip to content

Merge pull request #4 from explosion/fix/add-exception-handling #31

Merge pull request #4 from explosion/fix/add-exception-handling

Merge pull request #4 from explosion/fix/add-exception-handling #31

Workflow file for this run

name: Unit Tests
on:
pull_request:
push:
branches:
- main
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: "pip" # caching pip dependencies
- name: Check out Prodigy
uses: actions/checkout@v3
with:
repository: explosion/prodigy
ref: v1.14.11
path: ./prodigy
ssh-key: ${{ secrets.GHA_PRODIGY_READ }}
- name: Install prodigy
run: |
ls -la
pip install ./prodigy
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e .
pip install ruff pytest playwright
playwright install
- name: Run help
if: always()
shell: bash
run: |
python -m prodigy --help
- name: Run ruff
if: always()
shell: bash
run: python -m ruff check prodigy_lunr tests
- name: Run pytest unit tests
if: always()
shell: bash
run: python -m pytest tests -m "not e2e" -vvv
- name: Run e2e tests
if: always()
shell: bash
run: python -m pytest tests -m "e2e" -vvv