{"id":21381381,"url":"https://github.com/betrybe/pytest-evaluator-action","last_synced_at":"2025-07-13T13:31:03.470Z","repository":{"id":44882374,"uuid":"295511350","full_name":"betrybe/pytest-evaluator-action","owner":"betrybe","description":"🐍  Pytest Evaluator Action","archived":false,"fork":false,"pushed_at":"2023-03-10T18:01:15.000Z","size":40,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":43,"default_branch":"main","last_synced_at":"2024-04-16T19:41:16.044Z","etag":null,"topics":["github-actions","pytest","python","test"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/betrybe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-14T18:59:47.000Z","updated_at":"2024-04-16T19:41:16.046Z","dependencies_parsed_at":"2022-09-10T17:22:46.918Z","dependency_job_id":null,"html_url":"https://github.com/betrybe/pytest-evaluator-action","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betrybe%2Fpytest-evaluator-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betrybe%2Fpytest-evaluator-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betrybe%2Fpytest-evaluator-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betrybe%2Fpytest-evaluator-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betrybe","download_url":"https://codeload.github.com/betrybe/pytest-evaluator-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225885786,"owners_count":17539640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","pytest","python","test"],"created_at":"2024-11-22T10:46:05.262Z","updated_at":"2024-11-22T10:46:05.864Z","avatar_url":"https://github.com/betrybe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pytest Evaluator Action\n\nEssa action executa o avaliador Pytest em projetos e exercícios da Trybe.\n\n### Instalação de dependências\n\n```sh\nmake install\n# or\npython3 -m pip install -r requirements.txt\n```\n\n### Testes\n\n```sh\nmake test\n# or\npython3 -m pytest\n```\n\n## Evaluator Action\n\nPara executar a action é preciso criar ou editar o arquivo `.github/workflows/main.yml` no repositório do exercício/projeto, e incluir as etapas `Fetch PyTest evaluator`, `Set Python Version` e `Run PyTest evaluation`, como exemplificado abaixo:\n\n```yml\non:\n  pull_request:\n    types: [opened, synchronize]\n\njobs:\n  evaluator:\n    timeout-minutes: 20\n    runs-on: self-hosted\n    steps:\n      ...\n\n      - name: Fetch PyTest evaluator\n        uses: actions/checkout@v3\n        with:\n          repository: betrybe/pytest-evaluator-action\n          ref: v6.0\n          token: ${{ secrets.GIT_HUB_PAT }}\n          path: .github/actions/pytest-evaluator\n\n      - name: Set Python Version\n        uses: actions/setup-python@v4\n        with:\n          python-version: \"3.10.6\"\n\n      - name: Run PyTest evaluation\n        id: evaluator\n        uses: ./.github/actions/pytest-evaluator\n        with:\n          pr_author_username: ${{ github.event.pull_request.user.login }}\n\n      - name: Run Store evaluation\n        uses: ./.github/actions/store-evaluation\n        with:\n          evaluation-data: ${{ steps.evaluator.outputs.result }}\n          environment: production\n          token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Inputs\n\n- `pr_author_username` (**obrigatório**)\n  \n  O GitHub username do autor do Pull Request.\n\n### Outputs\n\n- `result`\n  \n  O resultado da avaliação em JSON codificado em base64.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetrybe%2Fpytest-evaluator-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetrybe%2Fpytest-evaluator-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetrybe%2Fpytest-evaluator-action/lists"}