-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (40 loc) · 1009 Bytes
/
unit_tests.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
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.0
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
- name: Run ruff
if: always()
shell: bash
run: python -m ruff prodigy_pdf tests
- name: Run pytest
if: always()
shell: bash
run: python -m pytest tests