Lines Matching +full:python3 +full:- +full:github
3 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4 """Tool for counting the number of currently running Github actions jobs.
6 This tool counts and enumerates the currently active jobs in Github actions
9 python3 ./count_running_jobs.py --token=<github token>
16 import github
23 github.Github(args.token)
24 .get_repo("llvm/llvm-project")
37 if filter_gha_runners and job.runner_group_name != "GitHub Actions":
54 description="A tool for listing and counting Github actions jobs"
57 "--token",
59 help="The Github token to use to authorize with the API",
64 "--output-file",
66 help="The output file to write time-series data to",
71 "--data-collection-interval",
78 "--filter-gha-runners",
79 help="Only consider jobs running on hosted Github actions runners",
83 "--no-filter-gha-runners",
96 print("A data collection interval must be specified when --output_file is used")