Skip to content

Commit

Permalink
Make test do something
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Sep 6, 2023
1 parent e6dd7f7 commit a64c4ab
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dags_tests/compile_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
from dagster import Definitions, load_assets_from_modules
from nwp import assets, jobs

def test_compiles():
assert True
all_assets = load_assets_from_modules([assets])
defs = Definitions(
assets=all_assets,
jobs=jobs.asset_jobs,
schedules=jobs.schedule_jobs
)
Binary file modified nwp/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified nwp/__pycache__/jobs.cpython-310.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions nwp/assets/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from nwp.assets.dwd.archive_to_hf import download_model_files, process_model_files, upload_model_files_to_hf
from nwp.assets.ecmwf.mars import download_mars_file
1 change: 1 addition & 0 deletions nwp/assets/ecmwf/mars.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

server = ECMWFService("mars")


@asset
def download_mars_file():
server.execute(
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ authors = [
]
classifiers = ["Programming Language :: Python :: 3"]
dependencies = [
"ecmwf-api-client == 1.6.3",
"dagit == 1.4.11",
"dagster == 1.4.11",
"dagster-cloud == 1.4.11",
"huggingface-hub == 0.16.4",
"numpy == 1.24.2",
"ocf-blosc2 == 0.0.3",
"pathlib == 1.0.1",
Expand Down

0 comments on commit a64c4ab

Please sign in to comment.