Skip to content

Commit

Permalink
Update ci workflow
Browse files Browse the repository at this point in the history
- Remove old version checks
- Remove test_examples.py
- Disable static checks for now
  • Loading branch information
cflerin committed May 6, 2021
1 parent 62cb047 commit 51fabc2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 95 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
- name: Check code style
run: |
make check-style
- name: Check static analysis
run: |
make check-static-analysis
#- name: Check static analysis
# run: |
# make check-static-analysis
- name: Install package
run: |
pip install .
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ format:
# help: check-format - check code format compliance
.PHONY: check-format
check-format:
@black --check src/ctxcore tests
@black -l 120 -S --check src/ctxcore tests


# help: sort-imports - apply import sort ordering
Expand Down
36 changes: 11 additions & 25 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@
# sys.path.insert(0, os.path.abspath('.'))


regexp = re.compile(r'.*__version__ = [\'\"](.*?)[\'\"]', re.S)
repo_root = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
pkg_root = os.path.join(repo_root, 'src', 'ctxcore')
init_file = os.path.join(pkg_root, '__init__.py')
with open(init_file, 'r') as f:
module_content = f.read()
match = regexp.match(module_content)
if match:
version = match.group(1)
else:
raise RuntimeError(
'Cannot find __version__ in {}'.format(init_file))


# -- General configuration ------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
Expand Down Expand Up @@ -63,9 +49,9 @@
# built documents.
#
# The short X.Y version.
version = version
version = 'latest'
# The full version, including alpha/beta/rc tags.
release = version
release = 'latest'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -126,12 +112,12 @@
}


# -- Custom config to work around readthedocs.org #1139 -------------------

def run_apidoc(_):
output_path = os.path.join(repo_root, 'docs', 'source', 'api')
apidoc.main(['-o', output_path, '-f', pkg_root])


def setup(app):
app.connect('builder-inited', run_apidoc)
## -- Custom config to work around readthedocs.org #1139 -------------------
#
#def run_apidoc(_):
# output_path = os.path.join(repo_root, 'docs', 'source', 'api')
# apidoc.main(['-o', output_path, '-f', pkg_root])
#
#
#def setup(app):
# app.connect('builder-inited', run_apidoc)
66 changes: 0 additions & 66 deletions tests/test_examples.py

This file was deleted.

0 comments on commit 51fabc2

Please sign in to comment.