-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 122219e
Showing
126 changed files
with
3,983 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.editorconfig | ||
.gitattributes | ||
.github | ||
.gitignore | ||
.gitlab-ci.yml | ||
.idea | ||
.pre-commit-config.yaml | ||
.readthedocs.yml | ||
.travis.yml | ||
venv | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{py,rst,ini}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{html,css,scss,json,yml,xml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[default.conf] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# General | ||
# ------------------------------------------------------------------------------ | ||
USE_DOCKER=yes | ||
IPYTHONDIR=/app/.ipython |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# PostgreSQL | ||
# ------------------------------------------------------------------------------ | ||
POSTGRES_HOST=postgres | ||
POSTGRES_PORT=5432 | ||
POSTGRES_DB=flamerelay | ||
POSTGRES_USER=WoQBkuTicxdqzZQnFKTjAmTbBoDalbmW | ||
POSTGRES_PASSWORD=GogoUeguUn8RETooJHKLAIhmMm4HUrmp7QTJKiLGUoNxo0QDoGbrAPNG2JZMpqhf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Config for Dependabot updates. See Documentation here: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
# Update GitHub actions in workflows | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
# Every weekday | ||
schedule: | ||
interval: 'daily' | ||
|
||
# Enable version updates for Docker | ||
# We need to specify each Dockerfile in a separate entry because Dependabot doesn't | ||
# support wildcards or recursively checking subdirectories. Check this issue for updates: | ||
# https://github.com/dependabot/dependabot-core/issues/2178 | ||
- package-ecosystem: 'docker' | ||
# Look for a `Dockerfile` in the `compose/local/django` directory | ||
directory: 'compose/local/django/' | ||
# Every weekday | ||
schedule: | ||
interval: 'daily' | ||
# Ignore minor version updates (3.10 -> 3.11) but update patch versions | ||
ignore: | ||
- dependency-name: '*' | ||
update-types: | ||
- 'version-update:semver-major' | ||
- 'version-update:semver-minor' | ||
|
||
- package-ecosystem: 'docker' | ||
# Look for a `Dockerfile` in the `compose/local/docs` directory | ||
directory: 'compose/local/docs/' | ||
# Every weekday | ||
schedule: | ||
interval: 'daily' | ||
# Ignore minor version updates (3.10 -> 3.11) but update patch versions | ||
ignore: | ||
- dependency-name: '*' | ||
update-types: | ||
- 'version-update:semver-major' | ||
- 'version-update:semver-minor' | ||
|
||
- package-ecosystem: 'docker' | ||
# Look for a `Dockerfile` in the `compose/local/node` directory | ||
directory: 'compose/local/node/' | ||
# Every weekday | ||
schedule: | ||
interval: 'daily' | ||
|
||
- package-ecosystem: 'docker' | ||
# Look for a `Dockerfile` in the `compose/production/aws` directory | ||
directory: 'compose/production/aws/' | ||
# Every weekday | ||
schedule: | ||
interval: 'daily' | ||
|
||
- package-ecosystem: 'docker' | ||
# Look for a `Dockerfile` in the `compose/production/django` directory | ||
directory: 'compose/production/django/' | ||
# Every weekday | ||
schedule: | ||
interval: 'daily' | ||
# Ignore minor version updates (3.10 -> 3.11) but update patch versions | ||
ignore: | ||
- dependency-name: '*' | ||
update-types: | ||
- 'version-update:semver-major' | ||
- 'version-update:semver-minor' | ||
|
||
- package-ecosystem: 'docker' | ||
# Look for a `Dockerfile` in the `compose/production/postgres` directory | ||
directory: 'compose/production/postgres/' | ||
# Every weekday | ||
schedule: | ||
interval: 'daily' | ||
|
||
- package-ecosystem: 'docker' | ||
# Look for a `Dockerfile` in the `compose/production/traefik` directory | ||
directory: 'compose/production/traefik/' | ||
# Every weekday | ||
schedule: | ||
interval: 'daily' | ||
|
||
# Enable version updates for Python/Pip - Production | ||
- package-ecosystem: 'pip' | ||
# Look for a `requirements.txt` in the `root` directory | ||
# also 'setup.cfg', 'runtime.txt' and 'requirements/*.txt' | ||
directory: '/' | ||
# Every weekday | ||
schedule: | ||
interval: 'daily' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CI | ||
|
||
# Enable Buildkit and let compose use it to speed up image building | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
COMPOSE_DOCKER_CLI_BUILD: 1 | ||
|
||
on: | ||
pull_request: | ||
branches: ['master', 'main'] | ||
paths-ignore: ['docs/**'] | ||
|
||
push: | ||
branches: ['master', 'main'] | ||
paths-ignore: ['docs/**'] | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
linter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
# Consider using pre-commit.ci for open source project | ||
- name: Run pre-commit | ||
uses: pre-commit/action@v3.0.0 | ||
|
||
# With no caching at all the entire ci process takes 4m 30s to complete! | ||
pytest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build the Stack | ||
run: docker-compose -f local.yml build | ||
|
||
- name: Run DB Migrations | ||
run: docker-compose -f local.yml run --rm django python manage.py migrate | ||
|
||
- name: Run Django Tests | ||
run: docker-compose -f local.yml run django pytest | ||
|
||
- name: Tear down the Stack | ||
run: docker-compose -f local.yml down |
Oops, something went wrong.