fix: pass constant in autoarima stepwise #1683
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
NIXTLA_NUMBA_CACHE: "1" | |
jobs: | |
build_wheels: | |
name: Build wheels for cp${{ matrix.python-version }}-${{ matrix.os-platform[1] }} | |
runs-on: ${{ matrix.os-platform[0] }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [38, 39, 310, 311, 312] | |
os-platform: | |
[ | |
[ubuntu-latest, manylinux_x86_64], | |
[ubuntu-latest, manylinux_aarch64], | |
[windows-latest, win_amd64], | |
[macos-12, macosx_x86_64], | |
[macos-14, macosx_arm64], | |
] | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
submodules: "true" | |
- name: Set up QEMU | |
if: matrix.os-platform[1] == 'manylinux_aarch64' | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | |
with: | |
platforms: arm64 | |
- name: Build wheels | |
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0 | |
env: | |
CIBW_BUILD: cp${{ matrix.python-version }}-${{ matrix.os-platform[1] }} | |
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: artifact-cp${{ matrix.python-version }}-${{ matrix.os-platform[1] }} | |
path: wheelhouse/*.whl | |
retention-days: 1 | |
publish-nightly-wheels: | |
if: github.event_name == 'push' | |
needs: [build_wheels] | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_NIXTLA_PACKAGES }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_NIXTLA_PACKAGES }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Download wheels | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
path: dist | |
pattern: "artifact-*" | |
merge-multiple: true | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: "3.10" | |
- name: Publish wheels | |
run: | | |
pip install awscli beautifulsoup4 | |
aws s3 cp s3://nixtla-packages/statsforecast/index.html . | |
python action_files/update_index.py | |
aws s3 sync dist s3://nixtla-packages/statsforecast/ | |
run-local-tests: | |
needs: [build_wheels] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-13, macos-14, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
submodules: "true" | |
- name: Set up environment | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pip requirements | |
run: pip install uv && uv pip install --system -r setup.py --extra dev --extra plotly | |
- name: Download wheels | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
path: dist | |
pattern: "artifact-*" | |
merge-multiple: true | |
- name: Install the library | |
run: pip install --no-index --find-links dist statsforecast | |
- name: Run local tests | |
run: nbdev_test --skip_file_re '(distributed|prophet).*.ipynb' --pause 1.0 --do_print --timing | |
run-tests: | |
needs: [build_wheels] | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
submodules: "true" | |
- name: Set up environment | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pip requirements | |
run: pip install uv && uv pip install --system -r setup.py --extra all | |
- name: Download wheels | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
path: dist | |
pattern: "artifact-*" | |
merge-multiple: true | |
- name: Install the library | |
run: pip install --no-index --find-links dist statsforecast | |
- name: Run tests | |
run: nbdev_test --skip_file_re '(distributed|prophet).*.ipynb' --pause 1.0 --do_print --timing | |
- name: Run integration tests | |
run: | | |
uv pip install --system pytest | |
pytest --durations=0 action_files | |
test-m3-performance: | |
needs: [build_wheels] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set up environment | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: "3.10" | |
- name: Install pip requirements | |
run: pip install uv && uv pip install --system -r setup.py --extra dev | |
- name: Download wheels | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
path: dist | |
pattern: "artifact-*" | |
merge-multiple: true | |
- name: Install the library | |
run: pip install --no-index --find-links dist statsforecast | |
- name: Run M3 experiment | |
run: | | |
python -m src.experiment | |
python -m src.evaluation --test | |
working-directory: ./experiments/m3 |