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

Deploy to test #1802

Merged
merged 9 commits into from
Dec 1, 2023
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -10,3 +10,4 @@ benefits/static/sha.txt
__pycache__/
.coverage
.DS_Store
.venv
19 changes: 11 additions & 8 deletions bin/init.sh
@@ -1,15 +1,18 @@
#!/usr/bin/env bash
set -eux

# remove existing (old) database file

if [[ ${DJANGO_DB_RESET:-true} = true ]]; then
# construct the path to the database file from environment or default
DB_DIR="${DJANGO_DB_DIR:-.}"
DB_FILE="${DB_DIR}/django.db"
# make the path to the database file from environment or default
DB_DIR="${DJANGO_DB_DIR:-.}"
DB_FILE="${DB_DIR}/django.db"
DB_RESET="${DJANGO_DB_RESET:-true}"

# -f forces the delete (and avoids an error when the file doesn't exist)
rm -f "${DB_FILE}"
# remove existing (old) database file
if [[ $DB_RESET = true && -f $DB_FILE ]]; then
# rename then delete the new file
# trying to avoid a file lock on the existing file
# after marking it for deletion
mv "${DB_FILE}" "${DB_FILE}.old"
rm "${DB_FILE}.old"
fi

# run database migrations
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
@@ -1,3 +1,4 @@
mdx_truly_sane_lists
mkdocs
mkdocs-awesome-pages-plugin
mkdocs-macros-plugin
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Expand Up @@ -50,6 +50,7 @@ markdown_extensions:
- attr_list
- codehilite:
linenums: true
- mdx_truly_sane_lists
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -12,7 +12,7 @@ dependencies = [
"django-csp==3.7",
"eligibility-api==2023.9.1",
"requests==2.31.0",
"sentry-sdk==1.35.0",
"sentry-sdk==1.38.0",
"six==1.16.0",
]

Expand Down
14 changes: 7 additions & 7 deletions tests/cypress/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/cypress/package.json
Expand Up @@ -12,6 +12,6 @@
"license": "AGPL-3.0-or-later",
"private": true,
"devDependencies": {
"cypress": "^13.5.1"
"cypress": "^13.6.0"
}
}