From 16f235b3a8bdda463220d1059c7e11c9411b7f96 Mon Sep 17 00:00:00 2001 From: Gaurav Sheni Date: Thu, 28 May 2026 10:31:54 -0400 Subject: [PATCH 1/2] update versions for GH actions uses --- .github/workflows/dependency_checker.yml | 6 +++--- .github/workflows/integration.yml | 8 ++++---- .github/workflows/lint.yml | 4 ++-- .github/workflows/minimum.yml | 4 ++-- .github/workflows/prepare_release.yml | 6 +++--- .github/workflows/readme.yml | 4 ++-- .github/workflows/release.yml | 8 ++++---- .github/workflows/unit.yml | 8 ++++---- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/dependency_checker.yml b/.github/workflows/dependency_checker.yml index 3ed5ad5..a2d63a0 100644 --- a/.github/workflows/dependency_checker.yml +++ b/.github/workflows/dependency_checker.yml @@ -7,9 +7,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up latest Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version-file: 'pyproject.toml' - name: Install dependencies @@ -19,7 +19,7 @@ jobs: make fix-lint - name: Create pull request id: cpr - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v8 with: token: ${{ secrets.GH_ACCESS_TOKEN }} commit-message: Update latest dependencies diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 6e9d033..0c69c0c 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -18,9 +18,9 @@ jobs: - os: macos-latest python-version: '3.14' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -32,8 +32,8 @@ jobs: - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.14 name: Upload integration codecov report - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v6 with: flags: integration - file: ${{ github.workspace }}/integration_cov.xml + files: ${{ github.workspace }}/integration_cov.xml token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f361962..2e97586 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,9 +13,9 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up latest Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version-file: 'pyproject.toml' - name: Install dependencies diff --git a/.github/workflows/minimum.yml b/.github/workflows/minimum.yml index 1bc20e1..485fb68 100644 --- a/.github/workflows/minimum.yml +++ b/.github/workflows/minimum.yml @@ -19,9 +19,9 @@ jobs: - os: macos-latest python-version: '3.14' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/prepare_release.yml b/.github/workflows/prepare_release.yml index 44b2400..4693579 100644 --- a/.github/workflows/prepare_release.yml +++ b/.github/workflows/prepare_release.yml @@ -18,9 +18,9 @@ jobs: preparerelease: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up latest Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version-file: 'pyproject.toml' @@ -44,7 +44,7 @@ jobs: - name: Create pull request id: cpr - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v8 with: token: ${{ secrets.GH_ACCESS_TOKEN }} commit-message: Prepare release for v${{ inputs.version }} diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index ba4b073..0e01d60 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -17,9 +17,9 @@ jobs: python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] os: [ubuntu-latest, macos-latest] # skip windows bc rundoc fails steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0cbc629..40d1204 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,12 +23,12 @@ jobs: permissions: id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ inputs.candidate && 'main' || 'stable' }} - name: Set up latest Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version-file: 'pyproject.toml' @@ -56,7 +56,7 @@ jobs: - name: Create pull request if: ${{ inputs.candidate && !inputs.test_pypi }} id: cpr - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v8 with: token: ${{ secrets.GH_ACCESS_TOKEN }} commit-message: bumpversion-candidate @@ -78,4 +78,4 @@ jobs: if: ${{ steps.cpr.outputs.pull-request-operation == 'created' }} run: gh pr merge "${{ steps.cpr.outputs.pull-request-number }}" --squash --auto env: - GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} \ No newline at end of file + GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index e465cbc..8cf4bf4 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -22,9 +22,9 @@ jobs: - os: macos-latest python-version: '3.14' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -36,8 +36,8 @@ jobs: - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.14 name: Upload unit codecov report - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v6 with: flags: unit - file: ${{ github.workspace }}/unit_cov.xml + files: ${{ github.workspace }}/unit_cov.xml token: ${{ secrets.CODECOV_TOKEN }} From 04c2695555e4e255be8c32ba69414dde590b0b09 Mon Sep 17 00:00:00 2001 From: Gaurav Sheni Date: Thu, 28 May 2026 12:36:02 -0400 Subject: [PATCH 2/2] lint fix --- README.md | 2 +- deepecho/sequences.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d145073..d399059 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ model.fit( entity_columns=['store_id'], context_columns=['region'], data_types=data_types, - sequence_index='date' + sequence_index='date', ) # Sample new data diff --git a/deepecho/sequences.py b/deepecho/sequences.py index 8f0a11f..2bb894c 100644 --- a/deepecho/sequences.py +++ b/deepecho/sequences.py @@ -166,13 +166,13 @@ def assemble_sequences( drop_sequence_index (bool): Whether to drop the sequence index after sorting. Defaults to ``True``. - Raises: - ValueError: - If context columns are not constant within each entity or segment. - Returns: list: List of ``pandas.DataFrames`` containing each segment. + + Raises: + ValueError: + If context columns are not constant within each entity or segment. """ if not entity_columns: segments = segment_sequence(data, segment_size, sequence_index, drop_sequence_index)