From a8424ee1669579f4fe4ff8fa4db4749283469be8 Mon Sep 17 00:00:00 2001 From: John <43506685+Coniferish@users.noreply.github.com> Date: Fri, 23 Feb 2024 12:23:58 -0600 Subject: [PATCH 1/8] init issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 27 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/custom.md | 8 +++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 +++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/custom.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 00000000..81da8267 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,27 @@ +--- +name: Bug report +about: Create a report to help us improve +title: bug/ +labels: bug +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Provide a code snippet that reproduces the issue. + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Environment Info** +Please run `python scripts/collect_env.py` and paste the output here. +This will help us understand more about the environment in which the bug occurred. + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 00000000..b894315f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,8 @@ +--- +name: Custom issue template +about: Describe this issue template's purpose here. +title: '' +labels: '' +assignees: '' + +--- diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..a3d2ce09 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: feat/ +labels: enhancement +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. From 14e371a21ebf69b83159ce99dba3afb76e26cf72 Mon Sep 17 00:00:00 2001 From: John <43506685+Coniferish@users.noreply.github.com> Date: Fri, 23 Feb 2024 14:58:43 -0600 Subject: [PATCH 2/8] WIP CI --- .github/workflows/ci.yaml | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..ce4adf3c --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,48 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + merge_group: + branches: [ main ] + +permissions: + id-token: write + contents: read + +jobs: + setup: + strategy: + matrix: + python-version: ["3.9","3.10","3.11"] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/base-cache + with: + python-version: ${{ matrix.python-version }} + check-only: 'true' + + test_unit: + strategy: + matrix: + python-version: ["3.9","3.10","3.11"] + runs-on: ubuntu-latest + needs: [setup] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Setup virtual environment + uses: ./.github/actions/base-cache + with: + python-version: ${{ matrix.python-version }} + - name: Test + run: | + source .venv/bin/activate + sudo apt-get update + make test CI=true UNSTRUCTURED_INCLUDE_DEBUG_METADATA=true From 7adf32653bbbe8a31899ded82ccb7bf486c6fe81 Mon Sep 17 00:00:00 2001 From: John <43506685+Coniferish@users.noreply.github.com> Date: Fri, 23 Feb 2024 15:04:28 -0600 Subject: [PATCH 3/8] WIP2 --- .github/workflows/ci.yaml | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ce4adf3c..59d87454 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,36 +13,33 @@ permissions: contents: read jobs: - setup: - strategy: - matrix: - python-version: ["3.9","3.10","3.11"] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/base-cache - with: - python-version: ${{ matrix.python-version }} - check-only: 'true' +# setup: +# strategy: +# matrix: +# python-version: ["3.9","3.10","3.11"] +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - uses: ./.github/actions/base-cache +# with: +# python-version: ${{ matrix.python-version }} +# check-only: 'true' test_unit: strategy: matrix: python-version: ["3.9","3.10","3.11"] runs-on: ubuntu-latest - needs: [setup] + # needs: [setup] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Setup virtual environment - uses: ./.github/actions/base-cache - with: - python-version: ${{ matrix.python-version }} - - name: Test + - name: Install dependencies + run: make install-test + - name: Run unit tests run: | - source .venv/bin/activate - sudo apt-get update - make test CI=true UNSTRUCTURED_INCLUDE_DEBUG_METADATA=true + pip install unstructured-client + make test From 3152b8fdcbe8c1f901a57eacf697fbdaa97f24c9 Mon Sep 17 00:00:00 2001 From: John <43506685+Coniferish@users.noreply.github.com> Date: Sat, 24 Feb 2024 15:04:58 -0600 Subject: [PATCH 4/8] edit ci.yaml --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 59d87454..fe5199ff 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,5 +41,5 @@ jobs: run: make install-test - name: Run unit tests run: | - pip install unstructured-client + pip install -e . make test From d7f6801dc3108b98afefebf839e033a49a9b0d25 Mon Sep 17 00:00:00 2001 From: John <43506685+Coniferish@users.noreply.github.com> Date: Sat, 24 Feb 2024 15:08:45 -0600 Subject: [PATCH 5/8] remove comments --- .github/workflows/ci.yaml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fe5199ff..2480d858 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,24 +13,11 @@ permissions: contents: read jobs: -# setup: -# strategy: -# matrix: -# python-version: ["3.9","3.10","3.11"] -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v3 -# - uses: ./.github/actions/base-cache -# with: -# python-version: ${{ matrix.python-version }} -# check-only: 'true' - test_unit: strategy: matrix: python-version: ["3.9","3.10","3.11"] runs-on: ubuntu-latest - # needs: [setup] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} From 259924230c657835a368a95a618df79bfd05cce8 Mon Sep 17 00:00:00 2001 From: John <43506685+Coniferish@users.noreply.github.com> Date: Sun, 25 Feb 2024 21:42:27 -0600 Subject: [PATCH 6/8] Update .github/workflows/ci.yaml Co-authored-by: Roman Isecke <136338424+rbiseck3@users.noreply.github.com> --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2480d858..3456b5df 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,5 +28,5 @@ jobs: run: make install-test - name: Run unit tests run: | - pip install -e . + pip install . make test From fb25c2b15efca4b5cd206ff31f9d11f432f00a10 Mon Sep 17 00:00:00 2001 From: John <43506685+Coniferish@users.noreply.github.com> Date: Tue, 27 Feb 2024 09:43:53 -0600 Subject: [PATCH 7/8] add linting workflow --- .github/workflows/ci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3456b5df..ee5e4b83 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -30,3 +30,12 @@ jobs: run: | pip install . make test + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: pip install .[dev] + - name: Lint + run: pylint --rcfile=pylintrc src From d86d9fa411dd9caa2fcfb815bc7ae16b32bc970d Mon Sep 17 00:00:00 2001 From: John <43506685+Coniferish@users.noreply.github.com> Date: Tue, 27 Feb 2024 11:18:11 -0600 Subject: [PATCH 8/8] change lint command --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ee5e4b83..1e3c1118 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -38,4 +38,4 @@ jobs: - name: Install dependencies run: pip install .[dev] - name: Lint - run: pylint --rcfile=pylintrc src + run: make lint