diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index eccb38d..7b29cac 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -6,8 +6,9 @@ body: attributes: value: > Thanks for taking the time to fill out this bug report! Before submitting your issue, please make - sure you are using the latest version of the charm. If not, please switch to this image prior to + sure you are using the latest version of the charm. If not, please switch to this image prior to posting your report to make sure it's not already solved. + - type: textarea id: bug-description attributes: @@ -16,6 +17,7 @@ body: If applicable, add screenshots to help explain the problem you are facing. validations: required: true + - type: textarea id: reproduction attributes: @@ -28,6 +30,7 @@ body: 3. `juju status --relations` validations: required: true + - type: textarea id: environment attributes: @@ -39,17 +42,19 @@ body: - Version of any applicable components, like the juju snap, the model controller, lxd, microk8s, and/or multipass. validations: required: true + - type: textarea id: logs attributes: label: Relevant log output description: > Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. - Fetch the logs using `juju debug-log --replay` and `kubectl logs ...`. Additional details available in the juju docs + Fetch the logs using `juju debug-log --replay` and `kubectl logs ...`. Additional details available in the juju docs at https://juju.is/docs/olm/juju-logs render: shell validations: required: true + - type: textarea id: additional-context attributes: diff --git a/.github/ISSUE_TEMPLATE/enhancement_proposal.yml b/.github/ISSUE_TEMPLATE/enhancement_proposal.yml index b2348b9..6cf72c5 100644 --- a/.github/ISSUE_TEMPLATE/enhancement_proposal.yml +++ b/.github/ISSUE_TEMPLATE/enhancement_proposal.yml @@ -7,11 +7,23 @@ body: value: > Thanks for taking the time to fill out this enhancement proposal! Before submitting your issue, please make sure there isn't already a prior issue concerning this. If there is, please join that discussion instead. + - type: textarea id: enhancement-proposal attributes: label: Enhancement Proposal description: > - Describe the enhancement you would like to see in as much detail as needed. + Describe the enhancement you would like to see in as much detail as needed. + validations: + required: true + + - type: dropdown + id: interested-in-implementing + attributes: + label: Is this a feature you are interested in implementing yourself? + options: + - 'Yes' + - 'Maybe' + - 'No' validations: required: true diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f14591e..302122b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,6 +3,21 @@ on: workflow_call: jobs: + lib-check: + name: Check libraries + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Check libs + uses: canonical/charming-actions/check-libraries@2.1.1 + with: + # TEMPLATE-TODO: Configure GH secrets + credentials: "${{ secrets.CHARMHUB_TOKEN }}" + github-token: "${{ secrets.GITHUB_TOKEN }}" + lint: name: Lint runs-on: ubuntu-latest @@ -21,13 +36,14 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Install dependencies - run: python -m pip install tox + run: python3 -m pip install tox - name: Run tests run: tox -e unit integration-test-microk8s: name: Integration tests (microk8s) needs: + - lib-check - lint - unit-test runs-on: ubuntu-latest diff --git a/tox.ini b/tox.ini index c9835c2..f26582a 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,9 @@ commands = description = Check code against coding style standards deps = black - flake8 + # flake8 pinned to 5.0.4 due to compatibility issues with 6.0.0 + # https://github.com/savoirfairelinux/flake8-copyright/issues/19 + flake8==5.0.4 flake8-docstrings flake8-copyright flake8-builtins