Skip to content

Commit 22b2048

Browse files
authored
Added configuration files and test-workflow steps (#274)
* Added configuration files to enable interaction with CodeCov and CodeRabbit with corresponding steps in test_gis_examples.yml * Added pytest-cov package to test and test_gis optional dependency lists in pyproject.toml
1 parent c70a401 commit 22b2048

File tree

4 files changed

+155
-1
lines changed

4 files changed

+155
-1
lines changed

.coderabbit.yaml

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
language: en-US
2+
tone_instructions: ''
3+
early_access: false
4+
enable_free_tier: true
5+
reviews:
6+
profile: chill
7+
request_changes_workflow: false
8+
high_level_summary: true
9+
high_level_summary_placeholder: '@coderabbitai summary'
10+
high_level_summary_in_walkthrough: false
11+
auto_title_placeholder: '@coderabbitai'
12+
auto_title_instructions: ''
13+
review_status: false
14+
commit_status: true
15+
fail_commit_status: false
16+
collapse_walkthrough: false
17+
changed_files_summary: true
18+
sequence_diagrams: true
19+
assess_linked_issues: true
20+
related_issues: true
21+
related_prs: true
22+
suggested_labels: true
23+
auto_apply_labels: false
24+
suggested_reviewers: true
25+
auto_assign_reviewers: false
26+
poem: true
27+
labeling_instructions: []
28+
path_filters: []
29+
path_instructions: []
30+
abort_on_close: true
31+
disable_cache: false
32+
auto_review:
33+
enabled: false
34+
auto_incremental_review: false
35+
ignore_title_keywords: []
36+
labels: []
37+
drafts: false
38+
base_branches: []
39+
finishing_touches:
40+
docstrings:
41+
enabled: true
42+
tools:
43+
ast-grep:
44+
rule_dirs: []
45+
util_dirs: []
46+
essential_rules: true
47+
packages: []
48+
shellcheck:
49+
enabled: true
50+
ruff:
51+
enabled: true
52+
markdownlint:
53+
enabled: true
54+
github-checks:
55+
enabled: true
56+
timeout_ms: 180000
57+
languagetool:
58+
enabled: true
59+
enabled_rules: []
60+
disabled_rules: []
61+
enabled_categories: []
62+
disabled_categories: []
63+
enabled_only: false
64+
level: default
65+
biome:
66+
enabled: true
67+
hadolint:
68+
enabled: true
69+
swiftlint:
70+
enabled: true
71+
phpstan:
72+
enabled: true
73+
level: default
74+
golangci-lint:
75+
enabled: true
76+
yamllint:
77+
enabled: true
78+
gitleaks:
79+
enabled: true
80+
checkov:
81+
enabled: true
82+
detekt:
83+
enabled: true
84+
eslint:
85+
enabled: true
86+
rubocop:
87+
enabled: true
88+
buf:
89+
enabled: true
90+
regal:
91+
enabled: true
92+
actionlint:
93+
enabled: true
94+
pmd:
95+
enabled: true
96+
cppcheck:
97+
enabled: true
98+
semgrep:
99+
enabled: true
100+
circleci:
101+
enabled: true
102+
sqlfluff:
103+
enabled: true
104+
prismaLint:
105+
enabled: true
106+
oxc:
107+
enabled: true
108+
shopifyThemeCheck:
109+
enabled: true
110+
chat:
111+
auto_reply: true
112+
create_issues: true
113+
integrations:
114+
jira:
115+
usage: auto
116+
linear:
117+
usage: auto
118+
knowledge_base:
119+
opt_out: false
120+
web_search:
121+
enabled: true
122+
learnings:
123+
scope: auto
124+
issues:
125+
scope: auto
126+
jira:
127+
usage: auto
128+
project_keys: []
129+
linear:
130+
usage: auto
131+
team_keys: []
132+
pull_requests:
133+
scope: auto
134+
code_generation:
135+
docstrings:
136+
language: en-US
137+
path_instructions: []

.github/workflows/test_gis_examples.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,9 @@ jobs:
5757
pip install -U git+https://github.com/projectmesa/mesa-geo@main#egg=mesa-geo
5858
pip install .[test_gis]
5959
- name: Test with pytest
60-
run: pytest -rA -Werror test_gis_examples.py
60+
run: pytest -rA -Werror test_gis_examples.py --cov-report=xml
61+
- name: Codecov
62+
uses: codecov/codecov-action@v5
63+
with:
64+
fail_ci_if_error: true
65+
token: ${{ secrets.CODECOV_TOKEN }}

codecov.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 80%
6+
threshold: 1%
7+
8+
ignore: []
9+
10+
comment: off

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ readme = "README.md"
2020
test = [
2121
"pytest",
2222
"scipy",
23+
"pytest-cov",
2324
]
2425
test_gis = [
2526
"pytest",
2627
"momepy",
28+
"pytest-cov",
2729
]
2830
rl_example = [
2931
"stable-baselines3",

0 commit comments

Comments
 (0)