test all #2
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
name: test all | |
on: | |
schedule: | |
- cron: 0 0 * * 0 | |
workflow_dispatch: | |
jobs: | |
code_quality: | |
name: code-quality | |
runs-on: ubuntu-latest | |
steps: | |
- name: repository checkout step | |
uses: actions/checkout@v4 | |
- name: python environment step | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: check missing __init__ files | |
run: build_tools/fail_on_missing_init_files.sh | |
shell: bash | |
test_base: | |
needs: code_quality | |
name: base | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
operating-system: | |
- macos-13 | |
- 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_module: | |
needs: code_quality | |
name: module | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
operating-system: | |
- macos-13 | |
- ubuntu-latest | |
- windows-latest | |
sktime-component: | |
- alignment | |
- classification | |
- clustering | |
- detection | |
- 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" | |
test_other: | |
needs: code_quality | |
name: other | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
operating-system: | |
- macos-13 | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.operating-system }} | |
steps: | |
- name: checkout pull request branch | |
uses: actions/checkout@v4 | |
- name: update local git tracking reference | |
run: git remote set-branches origin main | |
- name: update local shallow clone | |
run: git fetch --depth 1 | |
- name: create python virtual environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install OSX packages | |
shell: bash | |
run: ./.github/scripts/install_osx_dependencies.sh | |
- name: install core, test and all soft dependencies | |
run: python3 -m pip install .[all_extras_pandas2,tests] | |
- name: run unit tests | |
run: >- | |
python3 | |
-m pytest | |
sktime | |
--ignore sktime/base | |
--ignore sktime/datasets | |
--ignore sktime/alignment | |
--ignore sktime/annotation | |
--ignore sktime/classification | |
--ignore sktime/clustering | |
--ignore sktime/detection | |
--ignore sktime/forecasting | |
--ignore sktime/networks | |
--ignore sktime/param_est | |
--ignore sktime/regression | |
--ignore sktime/transformations | |
--matrixdesign False | |
--only_changed_modules False |