Skip to content

Commit

Permalink
testing root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-kumar-pilla committed Mar 9, 2024
1 parent a6e6ee8 commit 8808d1f
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ jobs:
- name: Install Project Dependencies
run: |
python -m pip install --upgrade pip
cd demo-project
pip install -r requirements.txt
- name: Deploy Kedro-Viz to GH Pages
uses: ravi-kumar-pilla/shareableviz-action@main
with:
telemetry_consent: false
telemetry_consent: true
project_path: 'demo-project'
1 change: 1 addition & 0 deletions .telemetry
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
consent: false
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ A GitHub action which deploys your Kedro-Viz static site on GitHub pages. This a
## Prerequisites

- **GitHub Pages Setup:** Configure your repository for [GitHub Pages](https://docs.github.com/en/pages/quickstart).
- **Directory structure:** This action considers your Kedro-project to be in the root directory
- **Kedro-project dependencies:** Install all the Kedro-project dependencies before using this action in your workflow
- **Python-version:** You need to have an environment with `python>=3.9` in your workflow

Expand All @@ -42,14 +41,10 @@ A GitHub action which deploys your Kedro-Viz static site on GitHub pages. This a
# Default: ${{ github.token }}
github_token: ''

# The GitHub pages publish branch to upload the artifacts.
# Default: 'gh-pages'
publish_branch: ''

# The commit message for the deployment. Defaults to your original commit message.
# Default: ${{ github.event.head_commit.message }}
commit_message: ''

# The Kedro-project path to build the Kedro-Viz artifacts.
# Default: '.'
project_path: ''

# Your consent to participate in Kedro-Telemetry.
# Default: true
telemetry_consent: ''
Expand All @@ -62,12 +57,24 @@ A GitHub action which deploys your Kedro-Viz static site on GitHub pages. This a
# 'branch' or 'workflow' based on your GitHub Pages configuration
# Default: 'branch'
publishing_source: ''


# The GitHub pages publish branch to upload the artifacts
# if your publishing_source is a branch
# Default: 'gh-pages'
publish_branch: ''

# The commit message for the deployment, if your publishing_source is a branch.
# Defaults to your original commit message.
# Default: ${{ github.event.head_commit.message }}
commit_message: ''

# The git config user.name or the owner of the commit.
# if your publishing_source is a branch.
# Default: 'github-actions[bot]'
user_name: ''

# The git config user.email or the email of the commit owner.
# if your publishing_source is a branch.
# Default: 'github-actions[bot]@users.noreply.github.com'
user_email: ''

Expand Down
69 changes: 69 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "spaceflights_pandas_viz"
readme = "README.md"
dynamic = ["dependencies", "version"]

[project.scripts]
spaceflights-pandas-viz = "spaceflights_pandas_viz.__main__:main"

[project.entry-points."kedro.hooks"]

[project.optional-dependencies]
docs = [
"docutils<0.18.0",
"sphinx~=3.4.3",
"sphinx_rtd_theme==0.5.1",
"nbsphinx==0.8.1",
"sphinx-autodoc-typehints==1.11.1",
"sphinx_copybutton==0.3.1",
"ipykernel>=5.3, <7.0",
"Jinja2<3.1.0",
"myst-parser~=0.17.2",
]

[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
version = {attr = "spaceflights_pandas_viz.__version__"}

[tool.setuptools.packages.find]
where = ["src"]
namespaces = false

[tool.kedro]
package_name = "spaceflights_pandas_viz"
project_name = "Spaceflights Pandas Viz"
kedro_init_version = "0.19.3"
tools = ['None']
example_pipeline = "False"
source_dir = "src"

[tool.pytest.ini_options]
addopts = """
--cov-report term-missing \
--cov src/spaceflights_pandas_viz -ra"""

[tool.coverage.report]
fail_under = 0
show_missing = true
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]

[tool.ruff.format]
docstring-code-format = true

[tool.ruff]
line-length = 88
show-fixes = true
select = [
"F", # Pyflakes
"W", # pycodestyle
"E", # pycodestyle
"I", # isort
"UP", # pyupgrade
"PL", # Pylint
"T201", # Print Statement
]
ignore = ["E501"] # Ruff format takes care of line-too-long
13 changes: 13 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ipython>=8.10
jupyterlab>=3.0
notebook
kedro~=0.19.3
kedro-datasets[pandas.CSVDataset, pandas.ExcelDataset, pandas.ParquetDataset, plotly.PlotlyDataset, plotly.JSONDataset, matplotlib.MatplotlibWriter]>=1.0
kedro-telemetry>=0.3.1
kedro-viz>=6.7.0
pytest-cov~=3.0
pytest-mock>=1.7.1, <2.0
pytest~=7.2
ruff~=0.1.8
scikit-learn~=1.0
seaborn~=0.12.1
Binary file added session_store.db
Binary file not shown.
1 change: 1 addition & 0 deletions stats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"companies": {"rows": 10019, "columns": 5, "file_size": 223318}, "preprocessed_companies": {"rows": 10019, "columns": 5, "file_size": 83644}, "shuttles": {"rows": 15531, "columns": 13, "file_size": 936864}, "preprocessed_shuttles": {"rows": 15531, "columns": 13, "file_size": 248352}, "shuttle_passenger_capacity_plot_exp": {"rows": 31, "columns": 9, "file_size": 96}, "reviews": {"rows": 15531, "columns": 10, "file_size": 588895}, "model_input_table": {"rows": 6027, "columns": 27, "file_size": 215143}, "X_train": {"rows": 4821, "columns": 8}, "X_test": {"rows": 1206, "columns": 8}}

0 comments on commit 8808d1f

Please sign in to comment.