diff --git a/.github/ISSUE_TEMPLATE/normal.md b/.github/ISSUE_TEMPLATE/normal.md new file mode 100644 index 00000000..199c6407 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/normal.md @@ -0,0 +1,21 @@ +--- +name: "🦆 Normal Issue report" +about: "Just describe your issue" +title: "🦆 [Issue] - " +labels: issue +--- + +## 🦆 Issue + + **Issue Description:** + + Please provide a clear and concise description of the issue. + + > **Fill out the field below:** + > + > _Describe the issue here so that others can understand your request._ + +--- + + > **Note:** The issue description field is required. + diff --git a/.github/ISSUE_TEMPLATE/normal.yml b/.github/ISSUE_TEMPLATE/normal.yml deleted file mode 100644 index bda01274..00000000 --- a/.github/ISSUE_TEMPLATE/normal.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: "🦆 Normal Issue report" -description: Just describe your issue -title: '🦆 [Issue] - <title>' -labels: [ - "issue" -] -body: - - type: textarea - id: Issue - validations: - required: true - attributes: - label: Issue - description: | - A clear and concise description of issue diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 3e26154b..2fab7701 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -54,7 +54,7 @@ jobs: pip install --no-deps -r RequirementsFiles/requirements-cuda-CPU.txt pip install --no-deps -r RequirementsFiles/requirements-llama-cpp-CPU.txt pip install --no-deps -r RequirementsFiles/requirements-stable-diffusion-cpp-CPU.txt - continue-on-error: true # Some dependencies might fail but we still want to lint + continue-on-error: true - name: Create .pylintrc run: | @@ -64,7 +64,7 @@ jobs: persistent=yes [MESSAGES CONTROL] - disable= + disable=\ C0111, # missing-docstring C0103, # invalid-name C0301, # line-too-long @@ -105,10 +105,12 @@ jobs: mkdir -p ./reports pylint LaunchFile/ --output-format=json > ./reports/pylint-report.json || true pylint LaunchFile/ --output-format=text > ./reports/pylint-report.txt || true + continue-on-error: true - name: Run flake8 run: | flake8 LaunchFile/ --max-line-length=120 --statistics --tee --output-file=./reports/flake8-report.txt || true + continue-on-error: true - name: Check pylint score run: | @@ -119,6 +121,18 @@ jobs: exit 1 fi + - name: Run MyPy + run: | + source venv/bin/activate + mypy LaunchFile/ + continue-on-error: true + + - name: Run tests + run: | + source venv/bin/activate + python -m unittest discover -s tests || true + continue-on-error: true + - name: Upload lint results if: always() uses: actions/upload-artifact@v3 @@ -157,4 +171,4 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, body: body - }); \ No newline at end of file + });