-
Notifications
You must be signed in to change notification settings - Fork 76
Add Github Action CI tests #889
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
Conversation
d5f3992
to
ea4959e
Compare
ea4959e
to
8e1bb56
Compare
- MYSQL_ROOT_PASSWORD=password | ||
- MYSQL_USER=credentials001 | ||
- MYSQL_PASSWORD=password | ||
- MYSQL_DATABASE=credentials |
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 change brought to you by tightening the restrictions on databases starting with test_
in mysql 5.6.46. docker-library/mysql#476
@@ -13,7 +13,7 @@ services: | |||
- DB_NAME=credentials | |||
- DB_PASSWORD=password | |||
- DB_PORT=3306 | |||
- DB_USER=credentials001 | |||
- DB_USER=root |
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.
Same as below
@@ -64,7 +64,7 @@ class Meta: | |||
uuid = factory.LazyFunction(uuid4) | |||
title = FuzzyText(prefix="Test Program ") | |||
type = FuzzyText() | |||
type_slug = slugify(str(type)) | |||
type_slug = factory.LazyAttribute(lambda o: slugify(o.type)) |
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 wasn't actually working before but mysql 5.6.X was handling the bad data fine.
docker exec -e TOXENV=$(TOXENV) -it credentials bash -c 'source /edx/app/credentials/credentials_env && cd /edx/app/credentials/credentials/ && xvfb-run make tests' | ||
docker exec -e TOXENV=$(TOXENV) -t credentials bash -c 'source /edx/app/credentials/credentials_env && cd /edx/app/credentials/credentials/ && xvfb-run make tests' | ||
|
||
exec-accept: ## Run acceptance tests on a container | ||
docker exec -it credentials bash -c 'source /edx/app/credentials/credentials_env && cd /edx/app/credentials/credentials/ && make accept' | ||
docker exec -t credentials bash -c 'source /edx/app/credentials/credentials_env && cd /edx/app/credentials/credentials/ && make accept' |
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're not actually uses interactive mode and GHA fails when Travis didn't
Merging w/ comments to unblock team in the morning. |
This is v1 to unblock credentials. Cleanup will happen later.