Rafael Guterres Jeffman #10
Workflow file for this run
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: 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 | |
- name: Arquiva resultados | |
uses: actions/upload-artifact@v3 | |
with: | |
name: homework_evaluation | |
path: RESULT | |
retention-days: 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 | |
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 |