-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 943 Bytes
/
ci.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
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
- dev
jobs:
Test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install python3
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: install dependencies
run: |
python -m pip install pip==24.0
pip install pytest
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install ./
pip list
- name: download models
run: |
python -m spacy download en_core_web_md
pip install -r requirements.txt
- name: run pytest
run: pytest ./tests/*
- name: Install ruff
run: pip install ruff
- name: Lint with ruff
run: |
ruff --output-format=github .
ruff check --fix
continue-on-error: true