-
Notifications
You must be signed in to change notification settings - Fork 45
37 lines (31 loc) 路 811 Bytes
/
pytest.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
# .github/workflows/pytest.yml
name: PyTest
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v3
# Setup Python (faster than using Python container)
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.8"
# Install pip dependencies + setup for testing
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m spacy download en_core_web_lg
# Run testing suite
- name: Run test suite
run: |
pytest -v