added pull request ci script
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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://192.168.1.2:5001/index/
|
||||
PIP_TRUSTED_HOST: 192.168.1.2
|
||||
run: |
|
||||
pip install poetry
|
||||
poetry install
|
||||
- name: PEP8 Check
|
||||
run: |
|
||||
poetry run flake8 . --benchmark
|
||||
- name: Type Check
|
||||
run: |
|
||||
poetry run mypy .
|
||||
Reference in New Issue
Block a user