From 8f10c16f3b9751a87efa04c250df46f545b04947 Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 19 Oct 2024 22:11:53 +0000 Subject: [PATCH] added pull request ci script --- .gitea/workflows/pull.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/pull.yaml diff --git a/.gitea/workflows/pull.yaml b/.gitea/workflows/pull.yaml new file mode 100644 index 0000000..77ab8b2 --- /dev/null +++ b/.gitea/workflows/pull.yaml @@ -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 .