-
Notifications
You must be signed in to change notification settings - Fork 2
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 #2 from unity-sds/277-repo-migration
#256: Repo Migration
- Loading branch information
Showing
47 changed files
with
2,298 additions
and
10 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,43 @@ | ||
--- | ||
name: Bug Report | ||
about: Report a bug to help us improve | ||
title: '[Bug]: ' | ||
labels: 'bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Checked for duplicates | ||
|
||
> Have you checked for duplicate issue tickets? | ||
- Ex. Yes - I've already checked | ||
- Ex. No - I haven't checked | ||
|
||
## Describe the bug | ||
|
||
> A clear and concise description of what the bug is. Plain-text snippets preferred but screenshots welcome. | ||
Ex. When I did [...] action, I noticed [...] | ||
|
||
## What did you expect? | ||
|
||
> A clear and concise description of what you expect to happen | ||
Ex. I expected [...] | ||
|
||
## Reproducible steps | ||
|
||
> How would we reproduce this bug? Please walk us through it step by step. Plain-text snippets preferred but screenshots welcome. | ||
1. | ||
2. | ||
3. | ||
|
||
## What is your environment? | ||
|
||
> Include any computer hardware, operating system, framework, browser, time-of-day or other contextual information related to your issue | ||
- Ex. Version of this software [e.g. vX.Y.Z] | ||
- Ex. Operating System: [e.g. MacOSX with Docker Desktop vX.Y] | ||
- ... |
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,34 @@ | ||
--- | ||
name: New Feature | ||
about: Suggest a new feature for us to implement | ||
title: '[New Feature]: ' | ||
labels: 'enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Checked for duplicates | ||
|
||
> Have you checked for duplicate issue tickets? | ||
- Ex. Yes - I've already checked | ||
- Ex. No - I haven't checked | ||
|
||
## Alternatives considered | ||
|
||
> Have you considered alternative solutions to your feature request? | ||
- Ex. Yes - and alternatives don't suffice | ||
- Ex. No - I haven't considered | ||
|
||
## Related problems | ||
|
||
> Is your feature request related to any problems? Please help us understand if so, including linking to any other issue tickets. | ||
Ex. I'm frustrated when [...] happens as documented in issue-XYZ | ||
|
||
## Describe the feature request | ||
|
||
> A clear and concise description of your request. | ||
Ex. I need or want [...] |
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,39 @@ | ||
name: Build Docker Images | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: "Docker Image Tag" | ||
required: false | ||
default: "development-tag" | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
TAG: ${{ github.event.inputs.tag }} | ||
SPS_AIRFLOW: ${{ github.repository }}/sps-airflow | ||
|
||
jobs: | ||
build-sps-airflow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Extract metadata (tags, labels) for SPS Airflow Docker image | ||
id: metascheduler | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.SPS_AIRFLOW }} | ||
- name: Build and push SPS Airflow Docker image | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: . | ||
file: airflow/docker/custom_airflow/Dockerfile | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ env.SPS_AIRFLOW }}:${{ env.TAG }} | ||
labels: ${{ steps.metascheduler.outputs.labels }} |
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,34 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.11' | ||
- name: Read .terraform-version | ||
id: tf_version | ||
run: echo "TF_VERSION=$(cat .terraform-version)" >> $GITHUB_ENV | ||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v3 | ||
with: | ||
terraform_version: ${{ env.TF_VERSION }} | ||
- name: Install Hadolint for pre-commit hook | ||
run: | | ||
wget -O /usr/local/bin/hadolint https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64 | ||
chmod +x /usr/local/bin/hadolint | ||
- name: Install dependencies for Python tests | ||
run: | | ||
pip install -e ".[test]" | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files | ||
- name: Test with pytest | ||
run: | | ||
pytest -vv --gherkin-terminal-reporter unity-test/unit |
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,38 @@ | ||
name: U-SPS Regression Test for MCP Venue Dev | ||
|
||
on: | ||
schedule: | ||
# Runs around midnight Pacific Time (UTC-7) | ||
# Doesn't account for daylight saving transitions | ||
- cron: "0 7 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
AIRFLOW_ENDPOINT: | ||
description: "Base URL for the Airflow endpoint (i.e. http://abc.def.ghi:port-number)" | ||
type: string | ||
|
||
jobs: | ||
print_inputs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
echo "Base URL for the Airflow endpoint (i.e. http://abc.def.ghi:port-number): ${{ github.event.inputs.AIRFLOW_ENDPOINT || vars.MCP_DEV_AIRFLOW_ENDPOINT }}" | ||
regression_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
working-directory: ${{ github.workspace }}/unity-test | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt --use-pep517 | ||
- name: Run the regression test | ||
working-directory: ${{ github.workspace }}/unity-test | ||
run: > | ||
pytest -s -vv --gherkin-terminal-reporter | ||
unity-test/system/smoke | ||
--airflow-endpoint=${{ github.event.inputs.AIRFLOW_ENDPOINT || vars.MCP_DEV_AIRFLOW_ENDPOINT }} |
Oops, something went wrong.