File tree Expand file tree Collapse file tree 4 files changed +27
-8
lines changed
Expand file tree Collapse file tree 4 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 1+ name : " Checks"
2+
3+ on :
4+ push :
5+ branches : [master]
6+
7+ jobs :
8+ checks :
9+ runs-on : ubuntu-20.04
10+ steps :
11+ - uses : actions/checkout@v2
12+ - name : Set up Python
13+ uses : actions/setup-python@v2
14+ with :
15+ python-version : " 3.7"
16+ - name : Install dependencies
17+ run : |
18+ python -m pip install --upgrade pip
19+ pip install setuptools wheel twine yapf sphinx sphinx_rtd_theme
20+ - name : Check formatting
21+ run : yapf -p -r --diff superannotate
22+ - name : Check docs
23+ run : make docs
Original file line number Diff line number Diff line change 1616 - name : Install dependencies
1717 run : |
1818 python -m pip install --upgrade pip
19- pip install setuptools wheel twine numpy yapf
20- - name : Check formatting
21- run : yapf -p -r --diff -e '*/pycocotools_sa' superannotate
19+ pip install setuptools wheel twine
2220 - name : Create distribution files
2321 run : python setup.py sdist
2422 - name : Publish distribution to PyPI
Original file line number Diff line number Diff line change 1616 - name : Install dependencies
1717 run : |
1818 python -m pip install --upgrade pip
19- pip install setuptools wheel twine numpy yapf
20- - name : Check formatting
21- run : yapf -p -r --diff -e '*/pycocotools_sa' superannotate
19+ pip install setuptools wheel twine
2220 - name : Create distribution files
2321 run : python setup.py sdist
2422 - name : Publish distribution to PyPI
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ PYLINT=pylint
55PYTESTS =pytest
66COVERAGE =coverage
77
8- tests : check_formatting
8+ tests : check_formatting docs
99 $(PYTESTS ) -n auto
1010
1111stress-tests : SA_STRESS_TESTS=1
@@ -35,7 +35,7 @@ lint_tests:
3535 -$(PYLINT ) tests/*
3636
3737docs :
38- cd docs && make html
38+ cd docs && make html SPHINXOPTS= " -W "
3939 @echo " \033[95m\n\nBuild successful! View the docs homepage at file://docs/build/html/index.html.\n\033[0m"
4040
4141dist :
You can’t perform that action at this time.
0 commit comments