-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1747 from stevenc987/main
23714-GCP: Build Notebook Report Job
- Loading branch information
Showing
31 changed files
with
4,244 additions
and
1,339 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
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 |
---|---|---|
@@ -1,90 +1,21 @@ | ||
name: Notebook Report Job CI | ||
name: Notebook Report CI | ||
|
||
on: | ||
pull_request: | ||
types: [assigned, synchronize] | ||
paths: | ||
- "jobs/notebook-report/**" | ||
|
||
workflow_dispatch: | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./jobs/notebook-report | ||
|
||
jobs: | ||
setup-job: | ||
runs-on: ubuntu-20.04 | ||
|
||
if: github.repository == 'bcgov/namex' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: "true" | ||
|
||
linting: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
make setup | ||
- name: Lint with pylint | ||
id: pylint | ||
run: | | ||
make pylint | ||
- name: Lint with flake8 | ||
id: flake8 | ||
run: | | ||
make flake8 | ||
testing: | ||
needs: setup-job | ||
env: | ||
PG_USER: postgres | ||
PG_PASSWORD: postgres | ||
PG_DB_NAME: postgres | ||
PG_HOST: localhost | ||
PG_PORT: 5432 | ||
|
||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
make setup | ||
- name: Test with pytest | ||
id: test | ||
run: | | ||
# make test | ||
#- name: Upload coverage to Codecov | ||
# uses: codecov/codecov-action@v3 | ||
# with: | ||
# file: ./queue_services/entity-pay/coverage.xml | ||
# flags: entitypay | ||
# name: codecov-entity-pay | ||
# fail_ci_if_error: true | ||
|
||
build-check: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build to check strictness | ||
id: build | ||
run: | | ||
make build-nc | ||
notebook-report-ci: | ||
uses: bcgov/bcregistry-sre/.github/workflows/backend-ci.yaml@main | ||
with: | ||
app_name: "notebook-report" | ||
working_directory: "./jobs/notebook-report" | ||
codecov_flag: "notebookreport" | ||
skip_isort: "true" | ||
skip_black: "true" |
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,17 @@ | ||
export NAMEX_DATABASE_USERNAME= | ||
export NAMEX_DATABASE_PASSWORD= | ||
export NAMEX_DATABASE_NAME= | ||
export NAMEX_DATABASE_HOST= | ||
export NAMEX_DATABASE_PORT= | ||
|
||
export APP_FILE= | ||
export DAILY_REPORT_RECIPIENTS= #- comma separated without any space between recipient emails | ||
export WEEKLY_REPORT_NAMEX_RECIPIENTS= #- comma separated without any space between recipient emails | ||
export WEEK_REPORT_DATE= #- e.g [0,1] means running on Monday and Tuesday | ||
export ERROR_EMAIL_RECIPIENTS= #- comma separated without any space between recipient emails | ||
export ENVIRONMENT= | ||
|
||
export NOTIFY_API_URL= | ||
export NOTIFY_CLIENT_ID= | ||
export NOTIFY_CLIENT_SECRET= | ||
export KEYCLOAK_AUTH_TOKEN_URL= |
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.