PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
202 stars 235 forks source link

Adding Workflow to run Integration Tests #3213

Closed meetagrawal09 closed 8 months ago

meetagrawal09 commented 1 year ago

Description

This PR aims at adding a new workflow to run integration tests for data.atmosphere download functions. These tests are to be scheduled weekly.

Review Time Estimate

Types of changes

Checklist:

allgandalf commented 1 year ago

The updated workflow installs all the required libraries, now can you figure out why we get the following error? :

Error: '"stub"' is not an exported object from 'namespace:mockery'
Execution halted
Error: Process completed with exit code 1.
meetagrawal09 commented 1 year ago

mockery::stub is something that a lot of our unit tests depend upon and all of those seem to work fine on CI.

meetagrawal09 commented 11 months ago

@mdietze, @infotroph I am getting the following error when trying to have python setup in Github Actions. ERA5 needs the cdsapi python package and I am using pip to install it. Can you please help me in fixing this one.

python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by python)
python: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /__t/Python/3.9.18/x64/lib/libpython3.9.so.1.0)
python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /__t/Python/3.9.18/x64/lib/libpython3.9.so.1.0)
python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /__t/Python/3.9.18/x64/lib/libpython3.9.so.1.0)
python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /__t/Python/3.9.18/x64/lib/libpython3.9.so.1.0)
meetagrawal09 commented 10 months ago

@mdietze, @infotroph I am getting the following error when trying to have python setup in Github Actions. ERA5 needs the cdsapi python package and I am using pip to install it. Can you please help me in fixing this one.

python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by python)
python: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /__t/Python/3.9.18/x64/lib/libpython3.9.so.1.0)
python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /__t/Python/3.9.18/x64/lib/libpython3.9.so.1.0)
python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /__t/Python/3.9.18/x64/lib/libpython3.9.so.1.0)
python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /__t/Python/3.9.18/x64/lib/libpython3.9.so.1.0)

Resolved it by changing Ubuntu version to 20.04

meetagrawal09 commented 9 months ago

@mdietze I have updated the PR to run integration tests for all other data items except ERA5 since that requires additional setup to access the CDS API. You can proceed with merging this one so that tests for other data items can run. I will raise another PR for changes needed by ERA5.

Successful test run : Job Link