Skip to content

FIX: ci invalid cache #896

Merged
merged 11 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/docs-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@ jobs:
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

key: venv-${{ runner.os }}-docs-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install -E all -vv
- name: Install docs dependencies
poetry install -E "all docs" -vv
alex-hse-repository marked this conversation as resolved.
Show resolved Hide resolved
- name: Install apt docs dependencies
run: |
sudo apt install pandoc
poetry install -E docs
- name: Build docs
run: |
cd docs
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/docs-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ jobs:
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-docs-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install -E all -vv
- name: Install docs dependencies
poetry install -E "all docs" -vv
- name: Install apt docs dependencies
run: |
sudo apt install pandoc
poetry install -E docs
- name: Build docs
run: |
cd docs
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,7 @@ jobs:
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Load cached venv
alex-hse-repository marked this conversation as resolved.
Show resolved Hide resolved
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install -E all -vv
martins0n marked this conversation as resolved.
Show resolved Hide resolved
- name: Install Jupyter
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python
id: setup-python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -55,16 +56,12 @@ jobs:
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install -E all -vv

- name: Install Pytest
run: |
poetry install -E tests
poetry install -E "all tests" -vv

- name: PyTest ("not long")
run: |
Expand All @@ -81,6 +78,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python
id: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.8
Expand All @@ -96,16 +94,12 @@ jobs:
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-3.8-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install -E all -vv

- name: Install Pytest
run: |
poetry install -E tests
poetry install -E "all tests" -vv

- name: PyTest ("long")
run: |
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-
-
-
-
- Fix ci invalid cache ([#896](https://github.com/tinkoff-ai/etna/pull/896))
-

## [1.11.1] - 2022-08-03
Expand Down
2 changes: 1 addition & 1 deletion etna/commands/backtest_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Any
from typing import Dict
from typing import List
from typing import Literal
from typing import Optional
from typing import Sequence
from typing import Union
Expand All @@ -11,6 +10,7 @@
import pandas as pd
import typer
from omegaconf import OmegaConf
from typing_extensions import Literal

from etna.datasets import TSDataset
from etna.pipeline import Pipeline
Expand Down
2 changes: 1 addition & 1 deletion etna/commands/forecast_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Any
from typing import Dict
from typing import List
from typing import Literal
from typing import Optional
from typing import Sequence
from typing import Union
Expand All @@ -11,6 +10,7 @@
import pandas as pd
import typer
from omegaconf import OmegaConf
from typing_extensions import Literal

from etna.datasets import TSDataset
from etna.pipeline import Pipeline
Expand Down