-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
34 lines (31 loc) · 877 Bytes
/
action.yml
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
name: "Vulture GitHub Action"
description: "A GitHub Action of Vulture, a tool for finding dead Python code."
author: "Gabriel Mitelman Tkacz"
inputs:
args:
description: "Arguments passed to Vulture. Use `vulture --help` to see available options."
required: false
src:
description: "Source to run vulture. Default: '.'"
required: false
default: "."
version:
description: 'The version of vulture to use, e.g. "==2.11.0"'
required: false
default: ""
runs:
using: 'composite'
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Vulture
shell: bash
run: pip install vulture${{ inputs.version }}
- name: Run Vulture
shell: bash
run: vulture ${{ inputs.src }} ${{ inputs.args }}
branding:
icon: 'search'
color: 'gray-dark'