forked from sktime/sktime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sktime:main' into main
- Loading branch information
Showing
258 changed files
with
1,948 additions
and
793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: test base sktime | ||
description: run unit tests on base interface of sktime framework | ||
inputs: | ||
python-version-identifier: | ||
description: python version to run tests | ||
required: true | ||
sub-sample-estimators: | ||
description: test only subset of estimators | ||
required: true | ||
test-affected-estimators: | ||
description: test only modified estimators | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: repository checkout step | ||
uses: actions/checkout@v4 | ||
- name: update tracking reference step | ||
run: git remote set-branches origin main | ||
shell: bash | ||
- name: shallow clone update step | ||
run: git fetch --depth 1 | ||
shell: bash | ||
- name: python environment step | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version-identifier }} | ||
- name: dependencies installation step | ||
run: python3 -m pip install .[tests] | ||
shell: bash | ||
- name: unit test step | ||
run: python3 -m pytest sktime/base --matrixdesign ${{ inputs.sub-sample-estimators }} --only_changed_modules ${{ inputs.test-affected-estimators }} | ||
shell: bash | ||
- name: test coverage step | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
flags: ${{ inputs.python-version-identifier }},base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: test specific sktime component | ||
description: run unit tests on individual component of sktime framework | ||
inputs: | ||
sktime-component-identifier: | ||
description: name of sktime component | ||
required: true | ||
python-version-identifier: | ||
description: python version to run tests | ||
required: true | ||
sub-sample-estimators: | ||
description: test only subset of estimators | ||
required: true | ||
test-affected-estimators: | ||
description: test only modified estimators | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: repository checkout step | ||
uses: actions/checkout@v4 | ||
- name: update tracking reference step | ||
run: git remote set-branches origin main | ||
shell: bash | ||
- name: shallow clone update step | ||
run: git fetch --depth 1 | ||
shell: bash | ||
- name: python environment step | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version-identifier }} | ||
- name: dependencies installation step | ||
run: python3 -m pip install .[${{ inputs.sktime-component-identifier }},tests] | ||
shell: bash | ||
- name: unit test step | ||
run: python3 -m pytest sktime/${{ inputs.sktime-component-identifier }} --matrixdesign ${{ inputs.sub-sample-estimators }} --only_changed_modules ${{ inputs.test-affected-estimators }} | ||
shell: bash | ||
- name: test coverage step | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
flags: ${{ inputs.python-version-identifier }},${{ inputs.sktime-component-identifier }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: test specific sktime extra | ||
description: install individual extra of sktime | ||
inputs: | ||
sktime-extra-identifier: | ||
description: name of sktime extra | ||
required: true | ||
python-version-identifier: | ||
description: python version to run tests | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: repository checkout step | ||
uses: actions/checkout@v4 | ||
- name: python environment step | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version-identifier }} | ||
- name: extra installation step | ||
run: python3 -m pip install .[${{ inputs.sktime-extra-identifier }}] | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: test all workflow | ||
on: | ||
schedule: | ||
- cron: 0 0 * * 0 | ||
workflow_dispatch: | ||
jobs: | ||
code_quality: | ||
name: validate code quality | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: repository checkout step | ||
uses: actions/checkout@v4 | ||
- name: python environment step | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- name: install pre-commit | ||
run: python3 -m pip install pre-commit | ||
- name: run pre-commit hooks on all files | ||
run: pre-commit run --color always --all-files --show-diff-on-failure | ||
- name: check missing __init__ files | ||
run: build_tools/fail_on_missing_init_files.sh | ||
shell: bash | ||
test_base: | ||
needs: code_quality | ||
name: test base framework | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
operating-system: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
runs-on: ${{ matrix.operating-system }} | ||
steps: | ||
- name: checkout pull request branch | ||
uses: actions/checkout@v4 | ||
- name: run tests on python ${{ matrix.python-version }} | ||
uses: ./.github/actions/test-base | ||
with: | ||
python-version-identifier: ${{ matrix.python-version }} | ||
sub-sample-estimators: "False" | ||
test-affected-estimators: "False" | ||
test_components: | ||
needs: code_quality | ||
name: test individual components | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
operating-system: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
sktime-component: | ||
- alignment | ||
- annotation | ||
- classification | ||
- clustering | ||
- forecasting | ||
- networks | ||
- param_est | ||
- regression | ||
- transformations | ||
runs-on: ${{ matrix.operating-system }} | ||
steps: | ||
- name: checkout pull request branch | ||
uses: actions/checkout@v4 | ||
- name: run tests for component ${{ matrix.sktime-component }} on python ${{ matrix.python-version }} | ||
uses: ./.github/actions/test-component | ||
with: | ||
sktime-component-identifier: ${{ matrix.sktime-component }} | ||
python-version-identifier: ${{ matrix.python-version }} | ||
sub-sample-estimators: "False" | ||
test-affected-estimators: "False" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: test base workflow | ||
on: | ||
workflow_call: | ||
jobs: | ||
detect: | ||
name: check for changes in base framework | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
outputs: | ||
base: ${{ steps.filter.outputs.base }} | ||
steps: | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
base: | ||
- sktime/base/** | ||
test: | ||
needs: detect | ||
name: test base framework | ||
if: ${{ needs.detect.outputs.base == 'true' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
operating-system: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
runs-on: ${{ matrix.operating-system }} | ||
steps: | ||
- name: checkout pull request branch | ||
uses: actions/checkout@v4 | ||
- name: run tests on python ${{ matrix.python-version }} | ||
uses: ./.github/actions/test-base | ||
with: | ||
python-version-identifier: ${{ matrix.python-version }} | ||
sub-sample-estimators: "True" | ||
test-affected-estimators: "True" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: validate code quality workflow | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
code_quality: | ||
name: test code quality | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: repository checkout step | ||
uses: actions/checkout@v4 | ||
- name: python environment step | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- name: install pre-commit | ||
run: python3 -m pip install pre-commit | ||
- id: changed-files | ||
name: identify modified files | ||
uses: tj-actions/changed-files@v40 | ||
- name: run pre-commit hooks on modified files | ||
run: pre-commit run --color always --files ${{ steps.changed-files.outputs.all_changed_files }} --show-diff-on-failure | ||
- name: check missing __init__ files | ||
run: build_tools/fail_on_missing_init_files.sh | ||
shell: bash | ||
unit_test_base: | ||
needs: code_quality | ||
name: run unit tests for base framework | ||
uses: ./.github/workflows/test_base.yml | ||
unit_test_components: | ||
needs: code_quality | ||
name: run unit tests for individual components | ||
uses: ./.github/workflows/test_components.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: test individual components workflow | ||
on: | ||
workflow_call: | ||
jobs: | ||
detect: | ||
name: check for changes in individual components | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
outputs: | ||
components: ${{ steps.filter.outputs.changes }} | ||
steps: | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
alignment: | ||
- sktime/alignment/** | ||
annotation: | ||
- sktime/annotation/** | ||
classification: | ||
- sktime/classification/** | ||
clustering: | ||
- sktime/clustering/** | ||
forecasting: | ||
- sktime/forecasting/** | ||
networks: | ||
- sktime/networks/** | ||
param_est: | ||
- sktime/param_est/** | ||
regression: | ||
- sktime/regression/** | ||
transformations: | ||
- sktime/transformations/** | ||
test: | ||
needs: detect | ||
name: test specific component | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
operating-system: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
sktime-component: ${{ fromJSON(needs.detect.outputs.components) }} | ||
runs-on: ${{ matrix.operating-system }} | ||
steps: | ||
- name: checkout pull request branch | ||
uses: actions/checkout@v4 | ||
- name: run tests for component ${{ matrix.sktime-component }} on python ${{ matrix.python-version }} | ||
uses: ./.github/actions/test-component | ||
with: | ||
sktime-component-identifier: ${{ matrix.sktime-component }} | ||
python-version-identifier: ${{ matrix.python-version }} | ||
sub-sample-estimators: "True" | ||
test-affected-estimators: "True" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.