| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
pip install -r requirements.txtFor the UML generator (run automatically within the CSV parser), in addition to the requirements.txt, you need to install graphviz on your execution environment https://graphviz.org/
# Params to specify the sheet and version
# by default, integrate uml generation process
python csv_parser.py -s RC-DE -v 0.5
python csv_parser.py --sheet RC-DE --version 0.5
# Defaults to RC-EDA and today (YY.MM.DD)
python csv_parser.pyThe full pipeline is defined in the GitHub action. To run it locally, you can rely on act and its medium image runner. Check the documentation to provide your GITHUB_TOKEN.
# Using GitHub CLI to get GitHub token
act -s GITHUB_TOKEN="$(gh auth token)"UML generator is called by default in the csv_parser.py but you may want to run it directly.
# Params to specify model and version
python uml_generator.py -m RC-EDA -o cisu -v 1.12
python uml_generator.py --model RC-EDA --obj cisu --version 1.12# Run everything
./auto.shWeird bug left git push hanging and not doing anything. Updating remote from https to git fixed it.
git remote set-url origin git@github.com:ansforge/SAMU-Hub-Modeles.gitUpdate local crons (crontab -e). To see current crons, use crontab -l.
# - For frequent runs
30 9-17/2 * * 1-5 cd ~/code/ans/AUTO_SAMU-Hub-Modeles/csv_parser/ && (./auto.sh >>cron.log 2>&1)
# - For weekly log deletion
30 17 1-7 * 5 rm ~/code/ans/AUTO_SAMU-Hub-Modeles/csv_parser/cron.log
# - For debug (run every minute)
# * * * * * cd ~/code/ans/AUTO_SAMU-Hub-Modeles/csv_parser/ && (./auto.sh >>cron.log 2>&1)# Review PR and merge it in GitHub
# Go to local tracker repo
cd ~/code/ans/AUTO_SAMU-Hub-Modeles/
# Delete remote branch (also doable on GitHub PR)
git push origin --delete auto/model_tracker
# Delete local branch
git checkout main
git branch -D auto/model_tracker
# Pull latest main state
git pull
# Recreate branch from latest main
git checkout -b auto/model_tracker
# Link it with remote branch
git push -u origin auto/model_tracker| Back | FazBrowse Home | New Git URL |