Skip to content
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

Merged
merged 1 commit into from
Dec 10, 2020
Merged

Migrate to GH Actions #27

merged 1 commit into from
Dec 10, 2020

Conversation

avivace
Copy link
Member

@avivace avivace commented Dec 8, 2020

This PR was prepared by an automated action. Closes #25

@ParthS007 ParthS007 self-assigned this Dec 9, 2020
Copy link
Member

@ParthS007 ParthS007 left a 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
Copy link
Member

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.


- name: Run tests
run: |
./run-tests.sh
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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",
Copy link
Member

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 = {
Copy link
Member

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

@avivace avivace force-pushed the ga-migration branch 2 times, most recently from ccf04cf to 9055c77 Compare December 9, 2020 11:47
@avivace
Copy link
Member Author

avivace commented Dec 9, 2020

@ParthS007 Great, thanks. Everything should be fixed (but the quotes minor issue)

- name: Build package
# Remove `compile_catalog` if the package has no translations.
run: |
python setup.py compile_catalog sdist bdist_wheel
Copy link
Member

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)

Suggested change
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
Copy link
Member

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 :)

@diegodelemos
Copy link
Member

diegodelemos commented Dec 10, 2020

Created issue to keep track of failing tests #28.

@diegodelemos diegodelemos merged commit 2b274b0 into master Dec 10, 2020
@diegodelemos diegodelemos deleted the ga-migration branch December 10, 2020 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

global: migration to github-actions from travis
3 participants