-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (38 loc) · 941 Bytes
/
pr.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
name: Pytest on PR
on:
push:
branches:
- develop
pull_request:
branches:
- master
- develop
jobs:
build:
strategy:
max-parallel: 4
matrix:
python-version: ["3.11"]
os: [ubuntu-latest, macos-13, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
- name: run on mac
if: startsWith(matrix.os, 'mac')
run: |
brew install libomp
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m spacy download en_core_web_sm
- name: Test with pytest
run: |
pip install pytest
pytest