Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MNT] new CI workflow to test extras (#5375)
new CI workflow that tris to install `sktime` each extra to see if the specified packages (with specified versions or versions bounds) are compatible with one another. when does it run: 1. runs first of every month at 00:00 2. runs for a PR into `main`that modifies `pyproject.toml` 3. runs when triggered manually what does it do: 1. runs for all supported operating system 2. runs for all supported python version 3. runs for all supported extras 4. creates a new python environment of specific python version on a specific operating system with a specific python version and installs `sktime` with a specific extra what does it not do: 1. installation multiple extras simultaneously - too many combinations 2. automated resolution if installation fails with conflicts - probably impossible other changes 1. formatted of `pyproject.toml` with `pyproject-fmt` as needed to test workflow 2. skipped `mrsqm` from `classification` extra as it was failing to be built in most combinations 3. added python version bound for relevant packages
- Loading branch information
1 parent
5e8d230
commit 5d729c4
Showing
3 changed files
with
77 additions
and
12 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
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,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 }} |
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