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

Aradhakrishnan gfdl build test #1

Open
wants to merge 41 commits into
base: main
Choose a base branch
from

Conversation

aradhakrishnanGFDL
Copy link
Owner

No description provided.

ilaflott and others added 30 commits July 23, 2024 11:58
`environment.yml` had different package reqs than whats in `setup.py` or `meta.yaml`. changed to be consistent.

`setup-python` github action gives us accesss to a python with conda in it, remove conda reqs for now. 

change name.
Ian Laflotte cannot spell.
…te-pip-install-pytest

not convinced this will work. lets see.
…da-conda-env-create-pip-install-pytest.yml

ian still can't type.
…l to conda-env-create-and-pytest.yml

shorter name
remove what seems to be redundant workflow
remove unused workflow
separate steps of docs job by new line for readability
remove unused docker build workflow
remove unused workflow file
create a conda build workflow that doesn't upload anything for PR/MR.

change the conda publish workflow to run only upon push to main.
update checkout action to v4, remove conda config line that i'm not sure works and is redundant anyways.
remove branch from meta.yaml
remove gir url from source field in catalogbuilder.

messes with conda build call. 

thank you bennet
include explicit `catalogbuilder.scripts.gen_intake_gfdl` import test in `meta.yaml` for conda package
trying to absorb what create-gfdl-catalog does into conda-env-create-and-pytest to start.

if i'm understanding the pipelines correctly, these steps should work with the conda env create approach, and we can re-define them in terms of the pytest suite. lets see if my first attempt here works..
ahhhhh the pytest, conda installations brought in with the python environment pointed to by github actions "setup-python" take precedence over the conda env python etc. 

not my favorite thing- but it does seem at least to work consistently. i hope to see most steps work after this commit.
`which pytest` upsets github ci/cd... kind of suprising
put publish-conda.yml name field back to old value, to avoid polluting the workflows menu of this repo more than i already did...
that later pytest call isnt redundant, it uses the downloaded artifacts from earlier in the workflow.

also, pretty sure the `python` call points to the right one, even if `pytest` doesn't without the path to the executable in the conda env.
remove now-redundant create-gfdl-catalog.yml. we can test all the same things in the pipeline testing the conda env create step.

for the future: absorb the test script calls into the pytest suite.
Co-authored-by: Aparna Radhakrishnan <[email protected]>
implementing conda env tricks for github ci/cd i figured out here:
NOAA-GFDL/fre-cli#127
now includes files other than `__init__.py` in `catalogbuilder/cats`
…getting put in a conda env's "site-packages" directory.

adjust respective workflow file

add pytest.ini file for assist pytest calls with finding the tests
ilaflott and others added 11 commits July 24, 2024 13:34
… change, and `<root>/intakebuilder/` --> `<root>/catalogbuilder/intakebuilder` change
…-run-pytest.yml

change file name / workflow name. change `pip install --prefix` path- shouldn't target `bin/`, but the directory containing it and e.g. `lib` and i.e. other top-level things for the env.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants