0

我在 GitHub Classrooms 上创建了一个作业,通过自定义我的 classroom.yml 来根据 GitHub Actions 评分。但是一旦构建完成,积分就不会更新回 GitHub Classrooms 仪表板。有什么办法可以做到这一点吗?

这就是我的教室.yml 的样子:

# This workflow will install Python dependencies, run tests and lint with a single Python version
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python Application

on:
  push:
    branches: [ main ]

jobs:
  build:

    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - name: Set up Python 3.10
      uses: actions/setup-python@v2
      with:
        python-version: "3.10"
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install flake8 pytest
        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
    - name: Lint with flake8
      run: |
        # stop the build if there are Python syntax errors or undefined names
        flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
        # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
        flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
    - uses: education/autograding@v1

构建成功完成,但仪表板未反映最终分数。

这是构建的最终结果

4

0 回答 0