Skip to content

Rafael Guterres Jeffman #16

Rafael Guterres Jeffman

Rafael Guterres Jeffman #16

Workflow file for this run

# Copyright (c) 2024 Rafael Guterres Jeffman
# See the file COPYING for license details.
---
name: grade_work
run-name:
on: [push, pull_request]
jobs:
lint_check:
name: Avaliação do pylint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: |
pip install pylint
pylint src
pep8_check:
name: Avaliação do flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: |
pip install flake8
flake8 --ignore=E501 src
docs_check:
name: Verifica documentação mínima do cốdigo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: |
pip install pydocstyle
pydocstyle src
run_tests:
name: Executa os testes de avaliação
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: |
pip install behave
pip install -e .
behave
continue-on-error: true
- name: Arquiva resultados
uses: actions/upload-artifact@v3
with:
name: homework_evaluation
path: RESULT
retention-days: 1
- name: Avalia successo
if: ${{ failure() }}
run: exit 1
report_result:
name: Resultados da avaliação
if: ${{ always() }}
needs: run_tests
runs-on: ubuntu-latest
steps:
- name: Download a single artifact
uses: actions/download-artifact@v3
with:
name: homework_evaluation
- run: sed -n -e '$ ! p' RESULT
id: Resultado
report_grade:
name: Previsão de nota final
if: ${{ always() }}
needs: run_tests
runs-on: ubuntu-latest
steps:
- name: Download a single artifact
uses: actions/download-artifact@v3
with:
name: homework_evaluation
- run: sed -n -e '$ p' RESULT
id: Previsão de Nota

Check failure on line 94 in .github/workflows/grade.yml

View workflow run for this annotation

GitHub Actions / grade_work

Invalid workflow file

The workflow is not valid. .github/workflows/grade.yml (Line: 94, Col: 13): The identifier 'Previsão de Nota' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.