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

Run test on step 1 #41

Merged
merged 21 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
25 changes: 25 additions & 0 deletions .github/workflows/test-B01_SL_load_single_file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test B01_SL_load_single_file
on:
pull_request: {}
push:
branches: [ main ]
jobs:
python_run_scripts:
strategy:
fail-fast: false
matrix:
version: ['3.9']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can other versions be added here? I think some code needed python 3.10 or 3.11 but I could be wrong on this.

runs-on: ubuntu-latest
steps:
- name: install mpi
run: sudo apt update && sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this needed? Maybe add a comment?

- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }} # install the python version needed
cache: "pip"
- name: install icesat2-tracks using pip
run: pip install .
- name: first step B01_SL_load_single_file
run: python src/icesat2_tracks/analysis_db/B01_SL_load_single_file.py 20190502052058_05180312_005_01 SH_testSLsinglefile2 True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: I guess this might be a command to add to CLI.

8 changes: 7 additions & 1 deletion pyproject.toml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the template generic comments be removed now that the project is (completely?) set up?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

referenced in #43

Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ dependencies = [ # Optional
"xarray",
"mpi4py",
"icesat2-toolkit==1.0.0.22",
"geopandas",
"sliderule",
"ipyleaflet"
]

# List additional groups of dependencies here (e.g. development
Expand Down Expand Up @@ -151,7 +154,10 @@ download = "icesat2_tracks.icesat2_tools_scripts.nsidc_icesat2_associated2:main"
# If there are data files included in your packages that need to be
# installed, specify them here.
# TODO: ADD ANY DATA FILES WE WANT TO HAVE
#package-data = {"sample" = ["*.dat"]}
package-data = {"icesat2_tracks" = ["config/*.json"]}

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

[build-system]
# These are the assumed default build requirements from pip:
Expand Down
Loading