Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/split-ci' into update-code-quali…
Browse files Browse the repository at this point in the history
…ty-check

* origin/split-ci: (36 commits)
  format pyproject
  [MNT] Auto format pyproject (sktime#5425)
  shorted workflow and job names
  removed unnecessary exclusion
  Revert "remove workflows temporarily"
  Revert "remove older python versions temporarily"
  add python 3.12 bound for tbats
  add python 3.12 bound for pmdarima
  add python 3.12 bound for stumpy
  add python 3.12 bound for pyod
  add python 3.12 bound for tsfresh
  add python 3.12 bound for tslearn
  add python 3.12 bound for tensorflow
  add python 3.12 bound for statsforecast
  add python 3.12 bound for numba
  remove older python versions temporarily
  removed mrsqm from classification extra
  added python 3.11 bound for esig
  reduce job matrix size
  support 3.12
  ...
  • Loading branch information
yarnabrina committed Oct 15, 2023
2 parents 5b5be60 + bfb8554 commit dafd4f9
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 234 deletions.
21 changes: 21 additions & 0 deletions .github/actions/validate-extra/action.yml
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
45 changes: 45 additions & 0 deletions .github/workflows/validate_extras.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: extras validation
on:
pull_request:
branches:
- main
paths:
- pyproject.toml
schedule:
- cron: 0 0 1 * *
workflow_dispatch:
jobs:
test_installations:
name: extras installation
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-extra:
- 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: install ${{ matrix.sktime-extra }} extra on python ${{ matrix.python-version }}
uses: ./.github/actions/validate-extra
with:
sktime-extra-identifier: ${{ matrix.sktime-extra }}
python-version-identifier: ${{ matrix.python-version }}
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,13 @@ repos:
hooks:
- id: shellcheck
name: shellcheck

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.2.0
hooks:
- id: pyproject-fmt

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.15
hooks:
- id: validate-pyproject
Loading

0 comments on commit dafd4f9

Please sign in to comment.