diff --git a/.github/ISSUE_TEMPLATE/bug_feature.yml b/.github/ISSUE_TEMPLATE/bug_feature.yml deleted file mode 100644 index cc8fed3..0000000 --- a/.github/ISSUE_TEMPLATE/bug_feature.yml +++ /dev/null @@ -1,36 +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 -assignees: '' - ---- - -### 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 - - 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. 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 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