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

DEV 2005 add gitlab ci #409

Merged
merged 14 commits into from Jul 21, 2023
Merged

DEV 2005 add gitlab ci #409

merged 14 commits into from Jul 21, 2023

Conversation

qiaouchicago
Copy link
Contributor

@qiaouchicago qiaouchicago commented Jul 20, 2023

Should wait for this pr to be merged and update the pin:
https://github.com/NCI-GDC/base-containers/pull/28

@qiaouchicago qiaouchicago marked this pull request as ready for review July 20, 2023 21:56
setup.py Outdated
Comment on lines 24 to 28
"notebook",
"jupyter",
"jupyter-client",
"jupyter-console",
"jupyter-core",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need all these for "dev" (and testing)?
Maybe add one more, "jupyter"?

Another alternative would be to add "test" and only include pytest-related deps. This way, tox would install ".[test]" (assuming tests don't need jupyter stuff) and save some time.

It's ok as is. It's just that "dev" with everything will add bootstrap time to each tox build (each commit).

Copy link
Member

@mpsolano mpsolano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

test/conftest.py Outdated
@@ -7,7 +7,7 @@
import random
import unittest
import uuid
from test.helpers import create_tables, truncate
from test.helpers import create_tables, truncate, DB_CONFIG
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an optional suggestion. The google style guide recommends not importing specific functions or classes. We as a team tend to relax that a bit for classes and configs but I think for functions it's still a preference. I think the preference here would be to do from test import helpers and then add the the dot notations. This is existing code but since we're updating the line it may make sense to bring it within standards.

test/helpers.py Outdated
"user": os.getenv("PG_HOST", "test"),
"password": os.getenv("PG_PASS", "test"),
"database": os.getenv("PG_NAME","automated_test"),
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

@@ -6,9 +6,11 @@
from gdcdatamodel import gdc_postgres_admin as pgadmin
from gdcdatamodel import models

from test.helpers import DB_CONFIG
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional suggestion for this and the imports in the other test files.

Suggested change
from test.helpers import DB_CONFIG
from test.helpers import DB_CONFIG

@qiaouchicago qiaouchicago merged commit ae5dd8e into develop Jul 21, 2023
4 checks passed
@qiaouchicago qiaouchicago deleted the feat/dev-2005-gitlab-ci branch July 21, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants