Skip to content

Commit

Permalink
Merge pull request #359 from Dartvauder/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Dartvauder authored Nov 3, 2024
2 parents 1522e51 + 1f26132 commit aef15bc
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 18 deletions.
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/normal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: "🦆 Normal Issue report"
about: "Just describe your issue"
title: "🦆 [Issue] - <title>"
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.
15 changes: 0 additions & 15 deletions .github/ISSUE_TEMPLATE/normal.yml

This file was deleted.

20 changes: 17 additions & 3 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -64,7 +64,7 @@ jobs:
persistent=yes
[MESSAGES CONTROL]
disable=
disable=\
C0111, # missing-docstring
C0103, # invalid-name
C0301, # line-too-long
Expand Down Expand Up @@ -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: |
Expand All @@ -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
Expand Down Expand Up @@ -157,4 +171,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
body: body
});
});

0 comments on commit aef15bc

Please sign in to comment.