Files
visual_critical_discourse_a…/.gitea/workflows/pull.yaml
T
brian 31be0d7aac
Code Quality Pipeline / Check Code (pull_request) Failing after 3m16s
added check for poetry installation
2025-03-06 21:34:14 +00:00

49 lines
1.4 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: Setup poetry
env:
POETRY_VERSION: 1.8.3
POETRY_HOME: /opt/poetry
POETRY_NO_INTERACTION: 1
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH=$POETRY_HOME/bin:$PATH
poetry --version
- name: Install Dependencies
env:
PIP_INDEX_URL: ${{ vars.PIP_INDEX_URL }}
PIP_TRUSTED_HOST: ${{ vars.PIP_TRUSTED_HOST }}
run: |
poetry install
- name: PEP8 Check
run: |
poetry run flake8 . --benchmark
- name: Type Check
run: |
poetry run mypy .
- name: Pytest & Calculate Coverage
env:
MINIO_ENDPOINT: ${{ vars.MINIO_ENDPOINT }}
MINIO_ACCESS_KEY: ${{ secrets.MINIO_ACCESS_KEY }}
MINIO_SECRET_KEY: ${{ secrets.MINIO_SECRET_KEY }}
run: |
poetry run coverage run -m pytest .
- name: Coverage Report
run: |
poetry run coverage report -m