Skip to content

Commit 51084bc

Browse files
committed
Checks on master push
1 parent 23ded2c commit 51084bc

File tree

4 files changed

+27
-8
lines changed

4 files changed

+27
-8
lines changed

.github/workflows/checks.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

.github/workflows/pre_release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ jobs:
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

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PYLINT=pylint
55
PYTESTS=pytest
66
COVERAGE=coverage
77

8-
tests: check_formatting
8+
tests: check_formatting docs
99
$(PYTESTS) -n auto
1010

1111
stress-tests: SA_STRESS_TESTS=1
@@ -35,7 +35,7 @@ lint_tests:
3535
-$(PYLINT) tests/*
3636

3737
docs:
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

4141
dist:

0 commit comments

Comments
 (0)