File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -12,27 +12,31 @@ clean:
12
12
find . -type d -name " __pycache__" -delete
13
13
pip3 uninstall google_search_results
14
14
15
+ create_env :
16
+ python -m venv .env
17
+ source .env/bin/activate
18
+
15
19
install :
16
20
python3 -m pip install --upgrade pip
17
21
if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
18
22
19
- lint :
23
+ lint : build_dep
20
24
# stop the build if there are Python syntax errors or undefined names
21
25
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
22
26
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
23
27
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
24
28
25
29
# Test with Python 3
26
- test :
27
- pytest
30
+ test : build_dep
31
+ pytest --workers auto --tests-per-worker auto
28
32
29
33
# run example only
30
34
# and display output (-s)
31
35
example :
32
36
pytest -s " tests/test_example.py::TestExample::test_async"
33
37
34
38
build_dep :
35
- pip3 install -U setuptools pytest flake8
39
+ pip3 install -U setuptools pytest py pytest-parallel flake8
36
40
37
41
# https://packaging.python.org/tutorials/packaging-projects/
38
42
build :
You can’t perform that action at this time.
0 commit comments