Merge branch 'sktime:main' into main #27
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: Install and test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
code-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- id: file_changes | |
uses: trilom/[email protected] | |
with: | |
output: " " | |
- name: List changed files | |
run: echo '${{ steps.file_changes.outputs.files}}' | |
- uses: pre-commit/[email protected] | |
with: | |
extra_args: --files ${{ steps.file_changes.outputs.files}} | |
- name: Check for missing init files | |
run: build_tools/fail_on_missing_init_files.sh | |
shell: bash | |
run-notebook-examples: | |
needs: code-quality | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install .[all_extras,binder,dev,mlflow] | |
- name: Run example notebooks | |
run: build_tools/run_examples.sh | |
shell: bash | |
run-blogpost-examples: | |
needs: code-quality | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install .[all_extras,binder,dev,mlflow] | |
- name: Run example notebooks | |
run: build_tools/run_blogposts.sh | |
shell: bash | |
test-nodevdeps: | |
needs: code-quality | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install sktime and dependencies | |
run: | | |
python -m pip install . | |
- name: Run pytest-free tests | |
run: | | |
python sktime/_nopytest_tests.py | |
test-nosoftdeps: | |
needs: code-quality | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install sktime and dependencies | |
run: | | |
python -m pip install .[dev] | |
- name: Show dependencies | |
run: python -m pip list | |
- name: Run tests | |
run: make PYTESTOPTIONS="--cov --cov-report=xml --timeout=600" test_softdeps | |
test-nosoftdeps-full: | |
needs: test-nosoftdeps | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: git remote set-branches origin 'main' | |
- run: git fetch --depth 1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install sktime and dependencies | |
run: | | |
python -m pip install .[dev] | |
- name: Show dependencies | |
run: python -m pip list | |
- name: Run tests | |
run: make PYTESTOPTIONS="--cov --cov-report=xml --timeout=600" test_softdeps_full | |
test-mlflow: | |
needs: test-nosoftdeps | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install sktime and dependencies | |
run: | | |
python -m pip install .[all_extras,dev,mlflow_tests] --no-cache-dir | |
- name: Show dependencies | |
run: python -m pip list | |
- name: Run tests | |
run: make PYTESTOPTIONS="--cov --cov-report=xml --timeout=600" test_mlflow | |
test-cython-estimators: | |
needs: test-nosoftdeps | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: git remote set-branches origin 'main' | |
- run: git fetch --depth 1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install OS packages | |
run: brew install libomp | |
- name: Install sktime and dependencies | |
run: | | |
python -m pip install .[dev,cython_extras] --no-cache-dir | |
- name: Show dependencies | |
run: python -m pip list | |
- name: Run tests | |
run: make PYTESTOPTIONS="--cov --cov-report=xml --only_cython_estimators=True --matrixdesign=False --timeout=600" test_check_suite | |
- name: Publish code coverage | |
uses: codecov/codecov-action@v4 | |
test-full: | |
needs: test-nosoftdeps | |
strategy: | |
fail-fast: false # to not fail all combinations if just one fail | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: git remote set-branches origin 'main' | |
- run: git fetch --depth 1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install sktime and dependencies | |
run: | | |
python -m pip install .[all_extras_pandas2,dev,dl] --no-cache-dir | |
- name: Show dependencies | |
run: python -m pip list | |
- name: Show available branches | |
run: git branch -a | |
- name: Run tests | |
run: make test_without_datasets | |
- name: Publish code coverage | |
uses: codecov/codecov-action@v4 | |
test-unix-pandas1: | |
needs: test-nosoftdeps | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: git remote set-branches origin 'main' | |
- run: git fetch --depth 1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install sktime and dependencies | |
run: | | |
python -m pip install .[all_extras,dev,pandas1] --no-cache-dir | |
- name: Show dependencies | |
run: python -m pip list | |
- name: Show available branches | |
run: git branch -a | |
- name: Run tests | |
run: make test_without_datasets | |
- name: Publish code coverage | |
uses: codecov/codecov-action@v4 |