Files
visual_critical_discourse_a…/.gitea/workflows/pull.yaml
T
brian a430366bbe
Code Quality Pipeline / Check Code (pull_request) Failing after 2m21s
updated variable name for clarity
2024-12-21 16:09:23 +00:00

41 lines
1.1 KiB
YAML

name: Code Quality Pipeline
on:
pull_request:
branches:
- main
jobs:
job:
name: Check Code
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Environment
uses: https://github.com/actions/setup-python@v3
with:
python-verison: "3.12"
architecture: "x64"
- name: Install Packages
env:
PIP_INDEX_URL: ${{ vars.PIP_INDEX_URL }}
PIP_TRUSTED_HOST: ${{ vars.PIP_TRUSTED_HOST }}
run: |
pip install poetry
poetry install
- name: PEP8 Check
run: |
poetry run flake8 . --benchmark
- name: Type Check
run: |
poetry run mypy .
- name: Pytest
env:
MINIO_ENDPOINT: ${{ vars.MINIO_ENDPOINT }}
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY }}
MINIO_SECRET_KEY: ${{ secrets.MINIO_SECRET_KEY }}
run: |
poetry run pytest .
- name: Coverage Report
run: |
poetry run coverage report -m