-
-
Notifications
You must be signed in to change notification settings - Fork 466
51 lines (44 loc) · 1.16 KB
/
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
48
49
50
51
name: tests
on:
push:
paths-ignore:
- "*.md"
pull_request:
types: [opened, synchronize, reopened, edited]
paths-ignore:
- "*.md"
env:
# Make sure we're exiting training as early as possible
SPACY_CONFIG_OVERRIDES: '--training.max_epochs=1 --training.max_steps=1'
WEASEL_CONFIG_OVERRIDES: '--training.max_epochs=1 --training.max_steps=1'
WASABI_LOG_FRIENDLY: 1
jobs:
tests:
name: Test
if: github.repository_owner == 'explosion'
strategy:
fail-fast: false
matrix:
include:
- os: windows-2019
python_version: "3.8"
- os: ubuntu-20.04
python_version: "3.8"
runs-on: ${{ matrix.os }}
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Configure Python version
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
architecture: x64
- name: Install requirements
run: |
python -m pip install -r requirements.txt
- name: Run tests
shell: bash
run: |
bash run-tests.sh python