-
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.
* Adds actions from Chowda * Splits wagtail-tests * Uses docker volume, upgrades to postgres16 * Adds documentation on image tag usage * Renames ci.yml to CI.yml * Renames test db in Actions
- Loading branch information
Showing
10 changed files
with
139 additions
and
42 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,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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ services: | |
- db | ||
environment: | ||
OV_DB_HOST: db | ||
# OV_DB_PASSWORD: | ||
env_file: | ||
- .env | ||
db: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3.8' | ||
|
||
services: | ||
tests: | ||
build: | ||
context: . | ||
target: test | ||
image: ov-tests | ||
volumes: | ||
- ./:/app/ | ||
entrypoint: /app/docker_entrypoints/test.sh | ||
environment: | ||
- OV_DB_ENGINE=django.db.backends.sqlite3 | ||
- OV_DB_NAME=testdb |