From b4a4ce15ab03deaf23620185ccd82648c4b2d30b Mon Sep 17 00:00:00 2001 From: comus3 Date: Mon, 19 May 2025 23:38:10 +0200 Subject: [PATCH 1/6] Fix YAML formatting in bug report and feature request template --- .github/ISSUE_TEMPLATE/bug_feature.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_feature.yml b/.github/ISSUE_TEMPLATE/bug_feature.yml index cc8fed3..7d44c58 100644 --- a/.github/ISSUE_TEMPLATE/bug_feature.yml +++ b/.github/ISSUE_TEMPLATE/bug_feature.yml @@ -1,9 +1,9 @@ +--- name: Bug Report / Feature Request about: Report a bug or request a new feature title: '[BUG]' or '[FEATURE]' - short description labels: bug, feature request assignees: '' - --- ### Describe the bug / feature request From 8b561632404e1be8dd3c132c9bc70fa2e42c038f Mon Sep 17 00:00:00 2001 From: comus3 Date: Mon, 19 May 2025 23:39:34 +0200 Subject: [PATCH 2/6] Fix title formatting in bug report and feature request template --- .github/ISSUE_TEMPLATE/bug_feature.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_feature.yml b/.github/ISSUE_TEMPLATE/bug_feature.yml index 7d44c58..8d59bb4 100644 --- a/.github/ISSUE_TEMPLATE/bug_feature.yml +++ b/.github/ISSUE_TEMPLATE/bug_feature.yml @@ -1,9 +1,8 @@ --- name: Bug Report / Feature Request about: Report a bug or request a new feature -title: '[BUG]' or '[FEATURE]' - short description +title: "[BUG] or [FEATURE] - short description" labels: bug, feature request -assignees: '' --- ### Describe the bug / feature request From c49ba3b13758db6f6b7299327c9a0508d45c4e57 Mon Sep 17 00:00:00 2001 From: comus3 Date: Mon, 19 May 2025 23:43:50 +0200 Subject: [PATCH 3/6] Remove bug report and feature request issue template --- .github/ISSUE_TEMPLATE/bug_feature.yml | 35 -------------------------- 1 file changed, 35 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_feature.yml diff --git a/.github/ISSUE_TEMPLATE/bug_feature.yml b/.github/ISSUE_TEMPLATE/bug_feature.yml deleted file mode 100644 index 8d59bb4..0000000 --- a/.github/ISSUE_TEMPLATE/bug_feature.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -name: Bug Report / Feature Request -about: Report a bug or request a new feature -title: "[BUG] or [FEATURE] - short description" -labels: bug, feature request ---- - -### Describe the bug / feature request - - - -### Steps to reproduce (for bugs) - -1. Go to '...' -2. Click on '...' -3. See error - -### Expected behavior - - - -### Screenshots or logs - - - -### Environment - -- OS: [e.g. Ubuntu 22.04, Windows 10] -- Python version: [e.g. 3.11] -- COGNIX version: [if applicable] -- Installed via: [pip, source, etc.] - -### Additional context - - From 1a85de34225eb7feb37e627700ec996407b87f68 Mon Sep 17 00:00:00 2001 From: comus3 Date: Mon, 19 May 2025 23:44:05 +0200 Subject: [PATCH 4/6] Add pytest to development requirements --- devrequirements.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 devrequirements.txt diff --git a/devrequirements.txt b/devrequirements.txt new file mode 100644 index 0000000..55b033e --- /dev/null +++ b/devrequirements.txt @@ -0,0 +1 @@ +pytest \ No newline at end of file From 68f33c891f7ee4902094d5c8fa52b29d5170a014 Mon Sep 17 00:00:00 2001 From: comus3 Date: Mon, 19 May 2025 23:44:13 +0200 Subject: [PATCH 5/6] Add GitHub Actions workflow to run tests on push and pull requests --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..19c02fb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Run tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.9, 3.10, 3.11] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pytest + + - name: Run tests + run: | + pytest --maxfail=1 --disable-warnings -q From baf2de60b025e5fb6bb882bd830ece1834c50d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Plantin-Carrenard?= <120224883+comus3@users.noreply.github.com> Date: Mon, 19 May 2025 23:46:17 +0200 Subject: [PATCH 6/6] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 38 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..dd84ea7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here.