Skip to content

调整缩进方式 #2023

调整缩进方式

调整缩进方式 #2023

name: compute involvement degree
on: [push]
jobs:
work:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# github action 默认签出只包含最后一次提交
# 解决方案参考:https://stackoverflow.com/questions/62334460/git-history-in-a-github-action
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
#任务名称:设置Python环境
- name: Set up Python
# This is the version of the action for setting up Python, not the Python version.
uses: actions/setup-python@v5
with:
python-version: '3.x' # 指定python版本
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
- name: Install Python dependencies
run: python -m pip install --upgrade pip requests gitpython
- name: Display involvement degree
run: python scores.py -t ${{ secrets.GITHUB_TOKEN }} # 执行