Compiladores: Exercício T0 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: action/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- run: | | |
pip install pylint | |
pylint src features/steps \ | |
--disable=import-error \ | |
--disable=no-member | |
pep8_check: | |
name: Avaliação do flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: action/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- run: | | |
pip install flake8 | |
flake8 --ignore=E501 | |
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: action/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- run: | | |
pip install pydocstyle | |
pydocstyle | |
run_tests: | |
name: Executa os testes de avaliação | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: action/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- run: | | |
pip install behave -r requirements.txt | |
behave | |
- name: Arquiva resultados | |
uses: actions/upload-artifact@v3 | |
with: | |
name: homework_evaluation | |
path: RESULT | |
retention-days: 1 | |
report_result: | |
name: Resultados da avaliação | |
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 | |
report_grade: | |
name: Previsão de nota final | |
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 |