From 37a470b03b89e643956ff962df514964599a5da3 Mon Sep 17 00:00:00 2001 From: Anirban Ray <39331844+yarnabrina@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:09:06 +0530 Subject: [PATCH] remove workflows temporarily --- .github/workflows/cancel.yml | 13 -- .github/workflows/test.yml | 247 ---------------------- .github/workflows/test_all.yml | 63 ------ .github/workflows/test_base.yml | 47 ---- .github/workflows/test_components.yml | 64 ------ .github/workflows/update_contributors.yml | 31 --- .github/workflows/validate_extras.yml | 45 ---- .github/workflows/wheels.yml | 152 ------------- 8 files changed, 662 deletions(-) delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_all.yml delete mode 100644 .github/workflows/test_base.yml delete mode 100644 .github/workflows/test_components.yml delete mode 100644 .github/workflows/update_contributors.yml delete mode 100644 .github/workflows/validate_extras.yml delete mode 100644 .github/workflows/wheels.yml diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 685c74e8dec..00000000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Cancel Workflows on Push -on: - workflow_run: - workflows: ["Install and test"] - types: - - requested -jobs: - cancel: - runs-on: ubuntu-latest - steps: - - uses: styfle/cancel-workflow-action@0.12.0 - with: - workflow_id: ${{ github.event.workflow.id }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 0ee0b597340..00000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,247 +0,0 @@ -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@v4 - - id: file_changes - uses: trilom/file-changes-action@v1.2.4 - with: - output: " " - - name: List changed files - run: echo '${{ steps.file_changes.outputs.files}}' - - uses: pre-commit/action@v3.0.0 - 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@v4 - 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 - - test-nodevdeps: - needs: code-quality - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v4 - 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@v4 - 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@v4 - 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@v4 - 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@v4 - 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@v3 - - 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@v4 - 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] --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 - - - name: Publish code coverage - uses: codecov/codecov-action@v3 - - 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@v4 - 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 - - - name: Publish code coverage - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/test_all.yml b/.github/workflows/test_all.yml deleted file mode 100644 index d65d12f5487..00000000000 --- a/.github/workflows/test_all.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: test all workflow -on: - schedule: - - cron: 0 0 * * 0 - workflow_dispatch: -jobs: - test_base: - 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: 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: - 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: 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" diff --git a/.github/workflows/test_base.yml b/.github/workflows/test_base.yml deleted file mode 100644 index 689d1b9be35..00000000000 --- a/.github/workflows/test_base.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: test base workflow -on: - pull_request: - branches: - - main -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" diff --git a/.github/workflows/test_components.yml b/.github/workflows/test_components.yml deleted file mode 100644 index f90fc5f4e97..00000000000 --- a/.github/workflows/test_components.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: test individual components workflow -on: - pull_request: - branches: - - main -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" diff --git a/.github/workflows/update_contributors.yml b/.github/workflows/update_contributors.yml deleted file mode 100644 index 5f4e5b04f77..00000000000 --- a/.github/workflows/update_contributors.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Update Contributors - -on: - push: - paths: - - '.all-contributorsrc' - -jobs: - generate-markdown-and-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up Node - uses: actions/setup-node@v3 - with: - node-version: 18 - - name: Set up tool - run: npm install -g all-contributors-cli@6.24.0 - - name: Generate file - id: generate - run: npx all-contributors generate - - name: commit-and-push - id: candp - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: '[AUTOMATED] update CONTRIBUTORS.md' - file_pattern: 'CONTRIBUTORS.md' - commit_user_name: github-actions[bot] - - name: Echo Results - if: steps.candp.outputs.changes_detected == 'true' - run: echo "changes detected and committed." diff --git a/.github/workflows/validate_extras.yml b/.github/workflows/validate_extras.yml deleted file mode 100644 index 1f0f8225904..00000000000 --- a/.github/workflows/validate_extras.yml +++ /dev/null @@ -1,45 +0,0 @@ -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 }} diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml deleted file mode 100644 index c482476a130..00000000000 --- a/.github/workflows/wheels.yml +++ /dev/null @@ -1,152 +0,0 @@ -name: Build wheels and publish to PyPI - -on: - release: - types: [published] - -jobs: - build_wheels: - name: Build wheels - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - - name: Build wheel - run: | - python -m pip install build - python -m build --wheel --sdist --outdir wheelhouse - - - name: Store wheels - uses: actions/upload-artifact@v3 - with: - name: wheels - path: wheelhouse/* - - test_unix_wheels: - needs: build_wheels - name: Test wheels on ${{ matrix.os }} with ${{ matrix.python-version }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false # to not fail all combinations if just one fail - matrix: - os: [ubuntu-latest, macos-latest] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - uses: actions/download-artifact@v3 - with: - name: wheels - path: wheelhouse - - - name: Get wheel filename - run: echo "WHEELNAME=$(ls ./wheelhouse/sktime-*none-any.whl)" >> $GITHUB_ENV - - - name: Install wheel and extras - run: python -m pip install "${{ env.WHEELNAME }}[all_extras_pandas2,dev]" - - - name: Run tests - run: make test - - test_windows_wheels: - needs: build_wheels - name: Test wheels on ${{ matrix.os }} with ${{ matrix.python-version }} - runs-on: windows-latest - strategy: - fail-fast: false # to not fail all combinations if just one fail - matrix: - include: - # Window 64 bit - - os: windows-latest - python: 38 - python-version: '3.8' - bitness: 64 - platform_id: win_amd64 - - os: windows-latest - python: 39 - python-version: '3.9' - bitness: 64 - platform_id: win_amd64 - - os: windows-latest - python: 310 - python-version: '3.10' - bitness: 64 - platform_id: win_amd64 - - os: windows-latest - python: 311 - python-version: '3.11' - bitness: 64 - platform_id: win_amd64 - - os: windows-latest - python: 312 - python-version: '3.12' - bitness: 64 - platform_id: win_amd64 - - steps: - - uses: actions/checkout@v4 - - uses: conda-incubator/setup-miniconda@v2 - with: - activate-environment: test - auto-update-conda: true - python-version: ${{ matrix.python-version }} - channels: anaconda, conda-forge, - - - run: conda --version - - run: which python - - - uses: actions/download-artifact@v3 - with: - name: wheels - path: wheelhouse - - - name: Install conda libpython - run: conda install -c anaconda -n test -y libpython - - - name: Display downloaded artifacts - run: ls -l wheelhouse - - - name: Get wheel filename - run: echo "WHEELNAME=$(ls ./wheelhouse/sktime-*none-any.whl)" >> $env:GITHUB_ENV - - - name: Activate conda env - run: conda activate test - - - name: Install wheel and extras - run: python -m pip install "${env:WHEELNAME}[all_extras_pandas2,dev]" - - - name: Show conda packages - run: conda list -n test - - - name: Run tests - run: | - mkdir -p testdir/ - cp .coveragerc testdir/ - cp setup.cfg testdir/ - python -m pytest - - upload_wheels: - name: Upload wheels to PyPI - runs-on: ubuntu-latest - needs: [build_wheels,test_unix_wheels,test_windows_wheels] - - steps: - - uses: actions/download-artifact@v3 - with: - name: wheels - path: wheelhouse - - - name: Publish package to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }} - packages_dir: wheelhouse/