Change artifact names

This commit is contained in:
Tamas Vajk
2021-06-10 11:26:07 +02:00
parent 73aaeb4c0d
commit b067309909
6 changed files with 13 additions and 12 deletions

View File

@@ -36,6 +36,6 @@ jobs:
- name: Upload timeseries CSV
uses: actions/upload-artifact@v2
with:
name: csv-flow-model-coverage-timeseries
path: timeseries-*.csv
name: framework-coverage-timeseries
path: framework-coverage-timeseries-*.csv

View File

@@ -47,11 +47,11 @@ jobs:
- name: Upload CSV package list
uses: actions/upload-artifact@v2
with:
name: csv-flow-model-coverage
path: flow-model-coverage-*.csv
name: framework-coverage-csv
path: framework-coverage-*.csv
- name: Upload RST package list
uses: actions/upload-artifact@v2
with:
name: rst-flow-model-coverage
path: flow-model-coverage-*.rst
name: framework-coverage-rst
path: framework-coverage-*.rst

View File

@@ -74,9 +74,10 @@ configs = [
# todo: change this when we cover multiple languages. We should compute the SHAs
# only once and not per language
output_prefix = "framework-coverage-timeseries-"
for config in configs:
with open("timeseries-" + config.lang + ".csv", 'w', newline='') as csvfile_total:
with open("timeseries-" + config.lang + "-packages.csv", 'w', newline='') as csvfile_packages:
with open(output_prefix + config.lang + ".csv", 'w', newline='') as csvfile_total:
with open(output_prefix + config.lang + "-packages.csv", 'w', newline='') as csvfile_packages:
csvwriter_total = csv.writer(csvfile_total)
csvwriter_packages = csv.writer(csvfile_packages)
csvwriter_total.writerow(

View File

@@ -1,7 +1,7 @@
import sys
generated_output_rst = "flow-model-coverage-{language}.rst"
generated_output_csv = "flow-model-coverage-{language}.csv"
generated_output_rst = "framework-coverage-{language}.rst"
generated_output_csv = "framework-coverage-{language}.csv"
# The CI job checks out the codebase to a subfolder
data_prefix = ""
@@ -16,7 +16,7 @@ if len(sys.argv) > index:
documentation_folder_no_prefix = "{language}/documentation/library-coverage/"
documentation_folder = data_prefix + documentation_folder_no_prefix
output_rst_file_name = "flow-model-coverage.rst"
output_csv_file_name = "flow-model-coverage.csv"
output_rst_file_name = "coverage.rst"
output_csv_file_name = "coverage.csv"
repo_output_rst = documentation_folder + output_rst_file_name
repo_output_csv = documentation_folder + output_csv_file_name