Skip to content

Commit

Permalink
#2 starting
Browse files Browse the repository at this point in the history
  • Loading branch information
karacolada committed Jan 23, 2024
1 parent c97ae44 commit fbe9f13
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions fuji_server/evaluators/fair_evaluator_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def testBuildInstructions(self):
self.logger.warning(
f"{self.metric_identifier} : Test for build, installation and execution instructions is not implemented."
)
test_requirements = self.metric_tests[test_id].metric_test_requirements
print(test_requirements) # list
# TODO: check each location (if available from harvest) for keywords
return test_status

def testDependencies(self):
Expand Down
6 changes: 5 additions & 1 deletion fuji_server/harvester/github_harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def harvest(self):
except UnknownObjectException:
pass

# identify source code
# identify source code (sample files in the main language used in the repo)
repo_languages = repo.get_languages()
if repo_languages != {}:
self.data["languages"] = repo_languages
Expand All @@ -90,3 +90,7 @@ def harvest(self):
)
if len(source_code_samples) > 0:
self.data["source_code_samples"] = source_code_samples

# TODO: parse README (full), wiki (page names?), docs (???)

# TODO: consider merging parts of the GitHub data with metadata?
12 changes: 12 additions & 0 deletions fuji_server/yaml/metrics_v0.7_software.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,18 @@ metrics:
metric_test_name: The software has build, installation and/or execution instructions.
metric_test_score: 1
metric_test_maturity: 1
metric_test_requirements:
- target: https://f-uji.net/vocab/metadata/standards
modality: any
required:
location:
- README
- docs
- wiki
keywords:
- build
- install
- run
- metric_test_identifier: FRSM-13-R1-2
metric_test_name: Dependencies are provided in a machine-readable format and the building and installation of the software is automated.
metric_test_score: 1
Expand Down

0 comments on commit fbe9f13

Please sign in to comment.