-
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.
* main: π Version bump v0.4.0 π© Upgrade Wagtail (#98) π Sync labels π· Labels (#100) π‘ GGShield (#96) π» CLI (#83) 𧫠Pytest (#97) π Lint (#94) β¬ Black (#93) πΈ VSCode Debugger (#85) π¬ Workflow Actions (#76)
- Loading branch information
Showing
61 changed files
with
1,802 additions
and
553 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
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,20 @@ | ||
name: π§ͺ Integration Tests | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
tests: | ||
name: βοΈ App Tests | ||
uses: WGBH-MLA/.github/.github/workflows/pytest-with-postgres.yml@main | ||
secrets: inherit | ||
with: | ||
pdm_args: -G test | ||
pytest_args: -n auto --nbmake -ra -s | ||
pg_db: ov | ||
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 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,12 @@ | ||
name: π· Sync labels | ||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
labels: | ||
name: π Sync labels | ||
uses: WGBH-MLA/.github/.github/workflows/labels.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,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 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,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,7 @@ | ||
repos: | ||
- repo: https://github.com/gitguardian/ggshield | ||
rev: v1.20.0 | ||
hooks: | ||
- id: ggshield | ||
language_version: python3 | ||
stages: [commit] |
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
Oops, something went wrong.