-
Notifications
You must be signed in to change notification settings - Fork 34
65 lines (56 loc) · 1.94 KB
/
fullstat_allplot.yml
File metadata and controls
65 lines (56 loc) · 1.94 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
52
53
54
55
56
57
58
59
60
61
62
63
64
name: fullstat_allplot # Kotaro Yama
# dropped the Docker container use (DLW April 2025)
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
defaults:
run:
shell: bash -l {0}
jobs:
build:
name: fullStatAllPlot
runs-on: ubuntu-latest
timeout-minutes: 60
env:
PYTHONPATH: ${{ github.workspace }}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test_env
python-version: 3.12
auto-activate-base: false
- name: Install Boost
run: sudo apt-get update && sudo apt-get install -y libboost-all-dev
- name: Install Eigen
run: sudo apt-get update && sudo apt-get install -y libeigen3-dev
- name: make C++
run: |
cd cell2fire/Cell2FireC
make
- name: install dependencies
run: |
pip install -r requirements.txt
pip install flake8
- name: setup the program
run: |
pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: create input data
run: |
cd cell2fire
python main.py --input-instance-folder ../data/dogrib/ --output-folder ../results/dogrib_n100cv05 --ignitions --sim-years 1 --nsims 3 --grids --finalGrid --weather rows --nweathers 1 --Fire-Period-Length 1.0 --output-messages --ROS-CV 0.5 --seed 123 --IgnitionRad 0 --stats --allPlots
- name: Install pytest
run: pip install pytest
- name: run tests
run: |
cd tests
pytest fullstat_allplot.py