-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
config.yml
102 lines (95 loc) 路 3.73 KB
/
config.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: 2.1
orbs:
win: circleci/windows@2.2.0
jobs:
run_dataset_script_tests_pyarrow_latest:
working_directory: ~/datasets
docker:
- image: cimg/python:3.6
resource_class: medium
steps:
- checkout
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: pip install --upgrade pip
- run: python -m venv venv
- run: source venv/bin/activate
- run: pip install .[tests]
- run: pip install -r additional-tests-requirements.txt --no-deps
- run: pip install pyarrow --upgrade
- run: HF_SCRIPTS_VERSION=master HF_ALLOW_CODE_EVAL=1 python -m pytest -d --tx 2*popen//python=python3.6 --dist loadfile -sv ./tests/
run_dataset_script_tests_pyarrow_5:
working_directory: ~/datasets
docker:
- image: cimg/python:3.6
resource_class: medium
steps:
- checkout
- run: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
- run: pip install --upgrade pip
- run: python -m venv venv
- run: source venv/bin/activate
- run: pip install .[tests]
- run: pip install -r additional-tests-requirements.txt --no-deps
- run: pip install pyarrow==5.0.0
- run: HF_SCRIPTS_VERSION=master HF_ALLOW_CODE_EVAL=1 python -m pytest -d --tx 2*popen//python=python3.6 --dist loadfile -sv ./tests/
run_dataset_script_tests_pyarrow_latest_WIN:
working_directory: ~/datasets
executor:
name: win/default
shell: powershell
steps:
- checkout
- run: |
conda init powershell
conda update conda
conda create -n py37 python=3.7 pytorch --yes
- run: |
conda activate py37
pip install .[tests]
pip install -r additional-tests-requirements.txt --no-deps
pip install pyarrow --upgrade
- run: |
conda activate py37
$env:HF_SCRIPTS_VERSION="master"
python -m pytest -n 2 --dist loadfile -sv ./tests/
run_dataset_script_tests_pyarrow_5_WIN:
working_directory: ~/datasets
executor:
name: win/default
shell: powershell
steps:
- checkout
- run: |
conda init powershell
conda update conda
conda create -n py37 python=3.7 pytorch --yes
- run: |
conda activate py37
pip install .[tests]
pip install -r additional-tests-requirements.txt --no-deps
pip install pyarrow==5.0.0
- run: |
conda activate py37
$env:HF_SCRIPTS_VERSION="master"
python -m pytest -n 2 --dist loadfile -sv ./tests/
check_code_quality:
working_directory: ~/datasets
docker:
- image: circleci/python:3.6
resource_class: medium
parallelism: 1
steps:
- checkout
- run: sudo pip install .[quality]
- run: black --check --line-length 119 --target-version py36 tests src benchmarks datasets metrics
- run: isort --check-only tests src benchmarks datasets metrics
- run: flake8 tests src benchmarks datasets metrics
workflows:
version: 2
build_and_test:
jobs:
- check_code_quality
- run_dataset_script_tests_pyarrow_latest
- run_dataset_script_tests_pyarrow_5
- run_dataset_script_tests_pyarrow_latest_WIN
- run_dataset_script_tests_pyarrow_5_WIN