Merge pull request 'ci_pull_request_pipeline' (#51) from ci_pull_request_pipeline into main

Reviewed-on: http://192.168.1.2:3000/brian/visual_critical_discourse_analysis/pulls/51
This commit was merged in pull request #51.
This commit is contained in:
Brian Bjarke Jensen
2024-10-20 00:17:23 +02:00
2 changed files with 32 additions and 3 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
name: CI Pipeline name: CI Pipeline
run-name: ${{ gitea.actor }} is running the CI Pipeline run-name: ${{ gitea.actor }} is running the CI Pipeline
on: on:
pull_request: release:
branches: types: [published]
- main
jobs: jobs:
test: test:
name: Test name: Test
+30
View File
@@ -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 .