Bump the ci-dependencies group with 4 updates #763
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] | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash -l {0} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
nb-sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Set up python | |
uses: actions/setup-python@v5 | |
- name: Install nbdev | |
run: pip install nbdev | |
- name: Check if all notebooks are cleaned | |
run: | | |
echo "Check we are starting with clean git checkout" | |
if [ -n "$(git status -uno -s)" ]; then echo "git status is not clean"; false; fi | |
echo "Trying to strip out notebooks" | |
./action_files/clean_nbs | |
echo "Check that strip out was unnecessary" | |
git status -s # display the status to see which nbs need cleaning up | |
if [ -n "$(git status -uno -s)" ]; then echo -e "!!! Detected unstripped out notebooks\n!!!Remember to run nbdev_install_hooks"; false; fi | |
run-all-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10'] | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_NIXTLA_TMP }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_NIXTLA_TMP }} | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Set up environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: environment.yml | |
create-args: python=${{ matrix.python-version }} | |
cache-environment: true | |
- name: Install the library | |
run: pip install ./ | |
- name: Run all tests | |
run: nbdev_test --n_workers 0 --do_print --timing --flags 'polars core' | |
run-macos-tests: | |
runs-on: macos-13 | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Set up environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: local_environment.yml | |
create-args: python=${{ matrix.python-version }} | |
cache-environment: true | |
- name: Install the library | |
run: pip install ./ | |
- name: Run local tests | |
run: nbdev_test --n_workers 0 --do_print --timing --skip_file_glob "*distributed*" --flags 'polars core' | |
run-windows-tests: | |
runs-on: windows-latest | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Set up environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install the library | |
run: pip install uv && uv pip install ".[dev]" --system | |
- name: Run local tests | |
run: nbdev_test --n_workers 0 --do_print --timing --skip_file_glob "*distributed*" --flags 'polars core' | |
check-deps: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install forecast notebook dependencies | |
run: pip install . datasetsforecast lightgbm matplotlib nbdev xgboost | |
- name: Run forecast notebook | |
run: nbdev_test --path nbs/forecast.ipynb | |
efficiency-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip install . pytest pytest-benchmark | |
- name: Run efficiency tests | |
run: pytest tests/test_pipeline.py --benchmark-group-by=func --benchmark-sort=fullname | |
performance-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip install . datasetsforecast lightgbm pytest | |
- name: Run m4 performance tests | |
run: pytest tests/test_m4.py |