-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.37 KB
/
linux.yml
File metadata and controls
51 lines (41 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Linux
on:
push:
branches: [ "main" ]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
auto-update-conda: true
conda-solver: "libmamba"
python-version: 3.12
- name: setup platform
run: |
conda env create --file=environment/configuration/conda_environment.yml
conda activate lue_tutorial
export LD_PRELOAD=$(find $CONDA_PREFIX -name libtcmalloc_minimal.so.4)
python -c 'import lue; print(f"lue: {lue.__version__} ({lue.git_short_sha1})")'
- name: game_of_life
run: |
conda activate lue_tutorial
export LD_PRELOAD=$(find $CONDA_PREFIX -name libtcmalloc_minimal.so.4)
cd use_case/game_of_life
python game_of_life.py 5000 1000 10 generation
ls -l *.tif
- name: usle
run: |
conda activate lue_tutorial
export LD_PRELOAD=$(find $CONDA_PREFIX -name libtcmalloc_minimal.so.4)
cd use_case/usle
curl --remote-name --silent https://lue.computationalgeography.org/download/lue_qa/elevation.tif
python usle.py 1000 elevation.tif usle.tif
ls -l *.tif