Skip to content

Commit

Permalink
code2flow yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jwestw committed Nov 7, 2024
1 parent 06ef3f9 commit 02cf61e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/code2flow-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Code2Flow Call Graph Workflow

on:
push:
branches: develop
pull_request:
branches: develop

permissions:
contents: write

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
token: ${{ secrets.GH_TOKEN }}
- name: Install dependencies
run: |
pip3 install -r requirements.txt
pip3 install code2flowdiagram
- name: Run code2flow to create png flowchart
run: |
mkdir -p imgs
code2flowdiagram . -o imgs/pipeline_call_graph.png
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: pipeline-call-graph
path: imgs/pipeline_call_graph.png

0 comments on commit 02cf61e

Please sign in to comment.