forked from Miyamura80/Python-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.09 KB
/
vulture_dead_code.yaml
File metadata and controls
43 lines (40 loc) · 1.09 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
name: Vulture - Clean Dead Code
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- '**'
paths-ignore:
- '.github/workflows/**'
jobs:
vulture:
if: github.event_name == 'pull_request' || github.event.pull_request == null
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout submodules
run: |
git submodule init
git submodule update
- name: Read Python version
run: echo "PYTHON_VERSION=$(cat .python-version | tr -d '\n')" >> $GITHUB_ENV
- run: |
echo "Log Level: ${{ github.event.inputs.log_level }}"
echo "Environment: ${{ github.event.inputs.environment }}"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Rye
uses: eifinger/setup-rye@v4
with:
version: 'latest'
- name: Run Vulture
run: |
rye sync
make vulture