move import of tensorflow inside class to leave code base less modifi… #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Notes: | ||
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitely declared as shell: bash -el {0} | ||
# https://github.com/marketplace/actions/setup-miniconda#important | ||
# | ||
name: Examples | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
container: | ||
image: jammont/isofit:amd64 | ||
options: --user root | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Enable ISOFIT Environment | ||
run: | | ||
echo PATH=/home/ray/anaconda3/envs/isofit/bin/:$PATH >> $GITHUB_ENV | ||
- name: Install Isofit | ||
run: | | ||
pip install --no-deps --force-reinstall --editable . | ||
- name: 20151026_SantaMonica | ||
run: | | ||
cd examples/20151026_SantaMonica | ||
bash run_examples.sh | ||
- name: 20171108_Pasadena | ||
run: | | ||
cd examples/20171108_Pasadena | ||
bash run_example_modtran.sh | ||
python run_topoflux_example.py | ||
- name: 20190806_ThermalIR | ||
run: | | ||
cd examples/20190806_ThermalIR | ||
python run_example_modtran_one.py | ||
- name: profiling_cube/small | ||
run: | | ||
cd examples/profiling_cube | ||
ISOFIT_DEBUG=1 python run_profiling.py |