Skip to content

Commit

Permalink
Updated secret to include the correct name for password for mysql on …
Browse files Browse the repository at this point in the history
…github actions
  • Loading branch information
brwali committed Nov 16, 2023
1 parent 82d43d5 commit febf97d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Create env file
run: |
cat << EOF > .env
DB_PASSWORD=${{ secrets.DB_PASSWORD }}
DB_PASSWORD=${{ secrets.MYSQL_ROOT_PASSWORD }}
EOF
- name: Running test cases for predicting
run: python test/test_predict.py
Expand Down
2 changes: 1 addition & 1 deletion test/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_accounts(self):
"""
Test case 5
"""
db = mysql.connector.connect(user='root', password=os.getenv('DB_PASSWORD'),
db = mysql.connector.connect(user='root', password=os.getenv('MYSQL_ROOT_PASSWORD'),
host='127.0.0.1')
self.setUpMockDB(db)
createAccount(db, "[email protected]", "testUser", "testPassword")
Expand Down

0 comments on commit febf97d

Please sign in to comment.