From 02cf61e66a35773051776cec63c5f1230f6dd0c7 Mon Sep 17 00:00:00 2001 From: James Westwood Date: Thu, 7 Nov 2024 15:54:00 +0000 Subject: [PATCH] code2flow yaml --- .github/workflows/code2flow-build.yaml | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/code2flow-build.yaml diff --git a/.github/workflows/code2flow-build.yaml b/.github/workflows/code2flow-build.yaml new file mode 100644 index 000000000..60588623d --- /dev/null +++ b/.github/workflows/code2flow-build.yaml @@ -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 \ No newline at end of file