forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.52 KB
/
windows.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
52
53
54
55
name: pytest:win
on:
push:
branches: ['*', '*/*', master]
paths:
- 'label_studio/**'
jobs:
windows_label_studio:
name: LS SQLite
runs-on: windows-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
env:
DJANGO_SETTINGS_MODULE: core.settings.label_studio
LOG_DIR: pytest_logs
collect_analytics: false
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install --upgrade cython
if (Test-Path -Path '.\deploy\requirements.txt' -PathType Leaf)
{pip install -r deploy\requirements.txt}
if (Test-Path -Path '.\deploy\requirements-test.txt' -PathType Leaf)
{pip install -r deploy/requirements-test.txt}
pip install -e .
- name: Init project
run: |
set PYTHONIOENCODING=utf-8
set PYTHONLEGACYWINDOWSSTDIO=utf-8
label-studio init my_project --agree-fix-sqlite # just install sqlite3.dll
label-studio init my_project --username [email protected] --password testpwd
cp sqlite3.dll %pythonLocation%/DLLs/sqlite3.dll
shell: cmd
- name: Test with pytest
env:
collect_analytics: 0
# PYTHONPATH: ../..
run: |
cd label_studio/
coverage run -m pytest
coverage report -m --fail-under=40