Files
visual_critical_discourse_a…/.gitea/workflows/pull.yaml
T
brian 06d9753c46
Code Quality Pipeline / Check Code (pull_request) Failing after 2m22s
added CI vars for tests
2024-12-21 16:03:04 +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: http://${{ vars.DOCKER_REPO_URL }}/index/
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