From c3a05e86cd9965710848cdc6c7dbe0901968d7cf Mon Sep 17 00:00:00 2001 From: gracetangg Date: Sat, 23 Sep 2023 11:24:53 -0400 Subject: [PATCH 1/2] transfer issue templates --- .github/ISSUE_TEMPLATE/config.yaml | 1 + .github/ISSUE_TEMPLATE/dv-tasking-issue.md | 22 +++++++++++ .github/pull_request_template.md | 11 ++++++ .github/workflows/fsdv-integration.yml | 45 ++++++++++++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/config.yaml create mode 100644 .github/ISSUE_TEMPLATE/dv-tasking-issue.md create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/fsdv-integration.yml diff --git a/.github/ISSUE_TEMPLATE/config.yaml b/.github/ISSUE_TEMPLATE/config.yaml new file mode 100644 index 000000000..8da9b001f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yaml @@ -0,0 +1 @@ +blank_issues_enabled: true diff --git a/.github/ISSUE_TEMPLATE/dv-tasking-issue.md b/.github/ISSUE_TEMPLATE/dv-tasking-issue.md new file mode 100644 index 000000000..9b4f44aee --- /dev/null +++ b/.github/ISSUE_TEMPLATE/dv-tasking-issue.md @@ -0,0 +1,22 @@ +--- +name: DV Tasking Issue +about: Issue template for subteam tasking +title: "[SUBTEAM]-[Project name]" +labels: '' +assignees: '' + +--- + +## Task Description: +... + +## Task Check-list: +- [ ] ... +- [ ] Write integration tests +- [ ] Add Documentation (to Confluence too) +- [ ] Open Pull Request + +## Task Timeline: +- [ ] Update [Smartsheet](https://app.smartsheet.com/sheets/phJjhWq5VvpqHHw8WW5rCRh8Xgccpv8Q96WCMr41?view=grid) with Task Timeline + +Comment any questions and tag reviewers. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..5778f3fa8 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,11 @@ +# Pull Request +Addresses Issue #__ ([issue name]) + +### Description +Explain any proposed changes here. + +### Check-list +- [ ] Integration tests pass +- [ ] Code Documented (and Confluence documentation updated) +- [ ] Reviewer 1 approved + diff --git a/.github/workflows/fsdv-integration.yml b/.github/workflows/fsdv-integration.yml new file mode 100644 index 000000000..9683d12cf --- /dev/null +++ b/.github/workflows/fsdv-integration.yml @@ -0,0 +1,45 @@ +name: cmr-fsdv + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + python-version: ["3.9"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - uses: actions/cache@v2 + with: + path: ${{ env.pythonLocation }} + key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install flake8 pytest + pip install --upgrade --upgrade-strategy eager -r requirements.txt + # if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + # - name: Lint with flake8 + # run: | + # # stop the build if there are Python syntax errors or undefined names + # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pytest From 2cc023487b946a46d54d554fc856f878bad9682f Mon Sep 17 00:00:00 2001 From: Ankit Khandelwal Date: Sat, 23 Sep 2023 11:41:31 -0400 Subject: [PATCH 2/2] Update dv-tasking-issue.md --- .github/ISSUE_TEMPLATE/dv-tasking-issue.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/dv-tasking-issue.md b/.github/ISSUE_TEMPLATE/dv-tasking-issue.md index 9b4f44aee..74d7f58df 100644 --- a/.github/ISSUE_TEMPLATE/dv-tasking-issue.md +++ b/.github/ISSUE_TEMPLATE/dv-tasking-issue.md @@ -17,6 +17,6 @@ assignees: '' - [ ] Open Pull Request ## Task Timeline: -- [ ] Update [Smartsheet](https://app.smartsheet.com/sheets/phJjhWq5VvpqHHw8WW5rCRh8Xgccpv8Q96WCMr41?view=grid) with Task Timeline +- [ ] Update [Jira](cmr.red/jira) with Task Timeline Comment any questions and tag reviewers.