Skip to content

Commit

Permalink
skip electricity tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez committed Jul 15, 2024
1 parent 66ff7af commit 08534c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 31 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,13 @@ concurrency:
cancel-in-progress: true

jobs:
nb-sync:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set up python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # 5.1.1

- 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']
python-version: ['3.8', '3.9', '3.10', '3.11']
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_NIXTLA_TMP }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_NIXTLA_TMP }}
Expand All @@ -63,7 +41,7 @@ jobs:
run: pip install ./

- name: Run all tests
run: nbdev_test --n_workers 0 --do_print --timing --flags 'polars core'
run: nbdev_test --n_workers 0 --do_print --timing --skip_file_glob 'electricity' --flags 'polars'

run-macos-tests:
runs-on: macos-13
Expand All @@ -87,7 +65,7 @@ jobs:
run: pip install ./

- name: Run local tests
run: nbdev_test --n_workers 0 --do_print --timing --skip_file_glob "*distributed*" --flags 'polars core'
run: nbdev_test --n_workers 0 --do_print --timing --skip_file_glob "(distributed|electricity)" --flags 'polars'

run-windows-tests:
runs-on: windows-latest
Expand All @@ -109,7 +87,7 @@ jobs:
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'
run: nbdev_test --n_workers 0 --do_print --timing --skip_file_glob "(distributed|electricity)" --flags 'polars'

check-deps:
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions nbs/feature_engineering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@
"outputs": [],
"source": [
"#| hide\n",
"#| core\n",
"from mlforecast.lag_transforms import ExpandingMean"
]
},
Expand All @@ -563,7 +562,6 @@
"outputs": [],
"source": [
"#| hide\n",
"#| core\n",
"transformed_core = transform_exog(\n",
" prices,\n",
" lags=[1, 2],\n",
Expand Down
3 changes: 0 additions & 3 deletions nbs/target_transforms.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@
"outputs": [],
"source": [
"#| hide\n",
"#| core\n",
"sc = AutoDifferences(1)\n",
"ga = GroupedArray(np.arange(10), np.array([0, 10]))\n",
"transformed = sc.fit_transform(ga)\n",
Expand Down Expand Up @@ -406,7 +405,6 @@
"outputs": [],
"source": [
"#| hide\n",
"#| core\n",
"sc = AutoSeasonalDifferences(season_length=5, max_diffs=1)\n",
"ga = GroupedArray(np.arange(5)[np.arange(10) % 5], np.array([0, 10]))\n",
"transformed = sc.fit_transform(ga)\n",
Expand Down Expand Up @@ -462,7 +460,6 @@
"outputs": [],
"source": [
"#| hide\n",
"#| core\n",
"sc = AutoSeasonalityAndDifferences(max_season_length=5, max_diffs=1)\n",
"ga = GroupedArray(np.arange(5)[np.arange(10) % 5], np.array([0, 10]))\n",
"transformed = sc.fit_transform(ga)\n",
Expand Down

0 comments on commit 08534c6

Please sign in to comment.