Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci/cd: add data dir #2

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
1 change: 1 addition & 0 deletions src/template_python/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
CONFIG_DIR: Path = ROOT_DIR / "config"
LOGS_DIR: Path = ROOT_DIR / "logs"
OUTPUTS_DIR: Path = ROOT_DIR / "outputs"
DATA_DIR: Path = ROOT_DIR / "data"
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

import pytest

from template_python.path import CONFIG_DIR, LOGS_DIR, OUTPUTS_DIR, ROOT_DIR
from template_python.path import CONFIG_DIR, DATA_DIR, LOGS_DIR, OUTPUTS_DIR, ROOT_DIR


# Fixture for paths
@pytest.fixture(
params=[ROOT_DIR, CONFIG_DIR, LOGS_DIR, OUTPUTS_DIR],
ids=["root_dir", "config_dir", "logs_dir", "outputs_dir"],
params=[ROOT_DIR, CONFIG_DIR, LOGS_DIR, OUTPUTS_DIR, DATA_DIR],
ids=["root_dir", "config_dir", "logs_dir", "outputs_dir", "data_dir"],
)
def path(request: pytest.FixtureRequest) -> Generator[Path, None, None]:
"""A fixture that provides a path for testing.
Expand Down
Loading