From 8f10c16f3b9751a87efa04c250df46f545b04947 Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 19 Oct 2024 22:11:53 +0000 Subject: [PATCH 1/2] 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 . From 082ccf83820cef13f0f94795dc2195d36c41ebd7 Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 19 Oct 2024 22:16:34 +0000 Subject: [PATCH 2/2] updated to trigger on published release --- .gitea/workflows/publish.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index ee4dcf9..74a0a1f 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -1,9 +1,8 @@ name: CI Pipeline run-name: ${{ gitea.actor }} is running the CI Pipeline on: - pull_request: - branches: - - main + release: + types: [published] jobs: test: name: Test