Skip to content

move import of tensorflow inside class to leave code base less modifi… #2

move import of tensorflow inside class to leave code base less modifi…

move import of tensorflow inside class to leave code base less modifi… #2

# 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:

Check failure on line 7 in .github/workflows/example-testing.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/example-testing.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
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