-
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
Showing
30 changed files
with
360 additions
and
101 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,6 @@ | ||
OV_DB_ENGINE=django.db.backends.postgresql | ||
OV_DB_HOST=0.0.0.0 | ||
OV_DB_PORT=5432 | ||
OV_DB_NAME=postgres | ||
OV_DB_USER=postgres | ||
OV_DB_PASSWORD="" |
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,19 @@ | ||
name: 🪂 Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
release: | ||
types: [published, edited, prereleased] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: 🔨 Build and deploy docker image | ||
uses: WGBH-MLA/.github/.github/workflows/build.yml@main | ||
with: | ||
target: production |
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,21 @@ | ||
name: 🧪 Integration Tests | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
tests: | ||
name: ⚗️ Application Tests | ||
uses: WGBH-MLA/.github/.github/workflows/pytest-with-postgres.yml@main | ||
secrets: inherit | ||
with: | ||
pdm_args: -G test,ci | ||
pytest_args: -n auto --nbmake -ra -s | ||
pg_db: ov-test | ||
|
||
lint: | ||
name: 👕 Lint | ||
uses: WGBH-MLA/.github/.github/workflows/lint.yml@main | ||
|
||
black: | ||
name: 🖤 Black | ||
uses: WGBH-MLA/.github/.github/workflows/black.yml@main |
This file was deleted.
Oops, something went wrong.
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,46 @@ | ||
name: 🏛 Publish to PyPi | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: 📦 Build package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 📰 Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: 📲 Setup PDM | ||
uses: pdm-project/setup-pdm@v3 | ||
id: setup-python | ||
with: | ||
python-version: 3.x | ||
|
||
- name: 🚚 Install dependencies | ||
run: pdm install --prod | ||
|
||
- name: 🏗️ Build package | ||
run: pdm build | ||
|
||
- name: 🛫 Export build files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
publish: | ||
name: 🗞 Publish package | ||
needs: build | ||
runs-on: ubuntu-latest | ||
environment: pypi | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: 🛬 Download artifacts | ||
uses: actions/download-artifact@v3 | ||
|
||
- name: 🗞 Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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 @@ | ||
name: 📦 Release | ||
|
||
on: | ||
milestone: | ||
types: [closed] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
name: 📝 Draft Release | ||
uses: WGBH-MLA/.github/.github/workflows/draft_release.yml@main |
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,12 @@ | ||
name: 🛍 Update dependencies | ||
# On Wednesdays, we update our dependencies. | ||
|
||
on: | ||
schedule: | ||
- cron: 0 12 * * 3 | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update: | ||
name: 🦿 Update dependencies | ||
uses: WGBH-MLA/.github/.github/workflows/update.yml@main |
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
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,64 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"inputs": [ | ||
{ | ||
"id": "numWorkers", | ||
"type": "promptString", | ||
"default": "4", | ||
"description": "Number of Gunicorn workers to run" | ||
} | ||
], | ||
"configurations": [ | ||
{ | ||
"name": "OV Wagtail - Django dev server", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/manage.py", | ||
"args": [ | ||
"runserver", | ||
"0.0.0.0:8000" | ||
], | ||
"django": true, | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "OV Wagtail - Gunicorn", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "gunicorn", | ||
"args": [ | ||
"-w ${input:numWorkers}", | ||
"-b 0.0.0.0:4000", | ||
"ov-wag.wsgi:applications", | ||
], | ||
"django": true, | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "Run Migrations", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/manage.py", | ||
"args": [ | ||
"migrate", | ||
"--noinput" | ||
], | ||
"django": true, | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "Run Tests", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/manage.py", | ||
"args": [ | ||
"test", | ||
], | ||
"django": true, | ||
"justMyCode": false | ||
}, | ||
] | ||
} |
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 @@ | ||
{ | ||
"python.testing.pytestArgs": [ | ||
"-v", | ||
], | ||
"python.testing.pytestEnabled": true, | ||
"python.testing.unittestEnabled": false | ||
} |
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 |
---|---|---|
|
@@ -8,9 +8,8 @@ services: | |
- db | ||
environment: | ||
OV_DB_HOST: db | ||
# OV_DB_PASSWORD: | ||
env_file: | ||
- .env | ||
db: | ||
env_file: | ||
- .db | ||
- .env |
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
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
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
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
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
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
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
Oops, something went wrong.