intel / dffml

The easiest way to use Machine Learning. Mix and match underlying ML libraries and data set sources. Generate new datasets or modify existing ones with ease.
https://intel.github.io/dffml/main/
MIT License
247 stars 136 forks source link

Policy engine workflow for building and testing 2nd party plugins #1614

Open pdxjohnny opened 1 week ago

pdxjohnny commented 1 week ago
pdxjohnny commented 1 week ago

Test Cases

gh search code --filename pyproject.toml --owner $USER --json repository,path,sha,url
[                                              
  {                   
    "path": "pyproject.toml",
    "repository": {                           
      "id": "MDEwOlJlcG9zaXRvcnk5ODQ2ODEzMw==",       
      "isFork": false,
      "isPrivate": false,                             
      "nameWithOwner": "pdxjohnny/httptest",                                                                                                                   
      "url": "https://github.com/pdxjohnny/httptest"
    },
    "sha": "17b123594123d648e8a064fb0761a248ed0b312e",
    "url": "https://github.com/pdxjohnny/httptest/blob/2239666733f9e77221b01425c8cc71fb18062eb4/pyproject.toml"
  }
]
$ for i in $(gh search code --filename pyproject.toml --owner $USER --json repository,path,sha,url --jq '.[]'); do export REPO_NAME_WITH_OWNER=$(echo "${i}" | jq -r .repository.nameWithOwner); echo $REPO_NAME_WITH_OWNER; done
pdxjohnny/httptest
pdxjohnny/signpost
pdxjohnny/autoentrypoint
pdxjohnny/dffml-operations-flights
pdxjohnny/dffml-operations-github
pdxjohnny/dotfiles
pdxjohnny/noteserver
pdxjohnny/consoletest
pdxjohnny/dffml-operations-us-reps
pdxjohnny/test-ffmpeg
pdxjohnny/dffml-operations-dockerhub
for i in $(gh search code --filename pyproject.toml --owner $USER --json repository,path,sha,url --jq '.[]'); do export REPO_NAME_WITH_OWNER=$(echo "${i}" | jq -r .repository.nameWithOwner); gh workflow run --ref 2nd-party-shared-ci-flows -F name-with-owner=$REPO_NAME_WITH_OWNER testing.yml; break; done

image

gh search code --filename pyproject.toml --owner $USER --json repository,path,sha,url | python -um json.tool | tee $USER-pep-518-repos.json && export GH_ACCESS_TOKEN=$(gh auth token) && (set -x; for i in $(cat $USER-pep-518-repos.json | jq -c '.[]'); do   export REPO_NAME_WITH_OWNER=$(echo "${i}" | jq -r .repository.nameWithOwner) && export GH_TOKEN=$(gh auth token) && export START_DATE="2024-06-27T00:00:00Z" && export END_DATE="2024-06-27T00:00:00Z" && python -u $(find . -name github_api.py); break;  done; )