forked from huggingface/datasets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
35 lines (33 loc) 路 1.17 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
version: 2
jobs:
run_dataset_script_tests:
working_directory: ~/nlp
docker:
- image: circleci/python:3.6
resource_class: medium
steps:
- checkout
- run: python -m venv venv
- run: source venv/bin/activate
- run: pip install .[tests]
- run: python -m pytest -sv ./tests/test_dataset_common.py
check_code_quality:
working_directory: ~/nlp
docker:
- image: circleci/python:3.6
resource_class: medium
parallelism: 1
steps:
- checkout
# we need a version of isort with https://github.com/timothycrosley/isort/pull/1000
- run: sudo pip install git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort
- run: sudo pip install .[quality]
- run: black --check --line-length 119 --target-version py36 tests src
- run: isort --check-only --recursive tests src
- run: flake8 tests src
workflows:
version: 2
build_and_test:
jobs:
- check_code_quality
- run_dataset_script_tests