-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to GH Actions #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Looks good, added some minor comments.
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: It can be 3.8
so we are always using the latest version for release.
.github/workflows/tests.yml
Outdated
|
||
- name: Run tests | ||
run: | | ||
./run-tests.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: Missing empty line
MANIFEST.in
Outdated
@@ -24,3 +24,4 @@ include .lgtm | |||
include LICENSE | |||
include MAINTAINERS | |||
global-exclude *.py[cod] __pycache__ *.so | |||
recursive-include .github/workflows *.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: missing empty line
@@ -9,4 +9,5 @@ | |||
|
|||
|
|||
[pytest] | |||
addopts = --pep8 --ignore=docs --cov=jsonresolver --cov-report=term-missing tests jsonresolver | |||
addopts = --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=jsonresolver --cov-report=term-missing | |||
testpaths = tests jsonresolver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: missing empty line
run-tests.sh
Outdated
python -m check_manifest --ignore ".*-requirements.txt" | ||
python -m sphinx.cmd.build -qnNW docs docs/_build/html | ||
python -m pytest | ||
python -m sphinx.cmd.build -qnNW -b doctest docs docs/_build/doctest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: missing empty lines
setup.py
Outdated
'pytest-pep8>=1.0.6', | ||
'pytest>=3.6.0', | ||
'requests>=2.7.0', | ||
"mock>=1.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: Replace "
with '
to maintain uniformity.
"pydocstyle>=1.0.0", | ||
"pytest-cache>=1.0", | ||
"requests>=2.7.0", | ||
"pytest-invenio>=1.4.0" | ||
] | ||
|
||
extras_require = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: Sphinx version can be >=3
ccf04cf
to
9055c77
Compare
@ParthS007 Great, thanks. Everything should be fixed (but the quotes minor issue) |
.github/workflows/pypi-publish.yml
Outdated
- name: Build package | ||
# Remove `compile_catalog` if the package has no translations. | ||
run: | | ||
python setup.py compile_catalog sdist bdist_wheel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This module doesn't have translations (according to previous .travis.yml
)
python setup.py compile_catalog sdist bdist_wheel | |
python setup.py sdist bdist_wheel |
# | ||
# jsonresolver is free software; you can redistribute it and/or modify | ||
# it under the terms of the Revised BSD License; see LICENSE file for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should leave Revised BSD License
license header :)
d3a85e1
to
85aba52
Compare
85aba52
to
0710f93
Compare
Created issue to keep track of failing tests #28. |
This PR was prepared by an automated action. Closes #25