-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
46 lines (43 loc) · 1.05 KB
/
Copy pathaction.yml
File metadata and controls
46 lines (43 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "CytoScnPy"
description: "High-performance dead code elimination analysis tool for Python."
author: "djinn09"
branding:
icon: "search"
color: "green"
inputs:
path:
description: "Path(s) to analyze"
required: false
default: "."
args:
description: "Additional arguments for cytoscnpy (e.g., --secrets --danger --quality)"
required: false
default: ""
version:
description: "Version of cytoscnpy to install"
required: false
default: "latest"
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install CytoScnPy
shell: bash
env:
VERSION: ${{ inputs.version }}
run: |
if [ "$VERSION" == "latest" ]; then
pip install cytoscnpy
else
pip install "cytoscnpy==$VERSION"
fi
- name: Run CytoScnPy
shell: bash
env:
CYTO_PATH: ${{ inputs.path }}
CYTO_ARGS: ${{ inputs.args }}
run: |
cytoscnpy "$CYTO_PATH" $CYTO_ARGS