From af34702012b9cacd21f82388e9050ad2e75bbd59 Mon Sep 17 00:00:00 2001 From: Mario Winkler <168550098+mario-winkler@users.noreply.github.com> Date: Thu, 17 Oct 2024 13:18:20 +0200 Subject: [PATCH 1/3] Update pyproject.toml --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index c084584..59e4b8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,6 +58,8 @@ allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["src/registration-library"] +[tool.flake8] +max-line-length = 110 [tool.black] line-length = 120 From e2616a6dd30179040b504be084035e4338c2294a Mon Sep 17 00:00:00 2001 From: Mario Winkler <168550098+mario-winkler@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:25:45 +0200 Subject: [PATCH 2/3] Create ci-build.yml --- .github/workflows/ci-build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci-build.yml diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 0000000..0f1e36c --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -0,0 +1,23 @@ +name: Registration Library CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: "3.11" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 black + - name: Analysing the code with flake8 + run: | + flake8 --max-line-length 120 --count --statistics . + - name: Check code format with black + run: | + black --check --diff --color . From bd0673e599944291f5fac2724cf19f87bfabad26 Mon Sep 17 00:00:00 2001 From: Mario Winkler <168550098+mario-winkler@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:30:01 +0200 Subject: [PATCH 3/3] Update ci-build.yml --- .github/workflows/ci-build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 0f1e36c..7a976a7 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -14,10 +14,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 black + pip install flake8 black pytest requests - name: Analysing the code with flake8 run: | flake8 --max-line-length 120 --count --statistics . - name: Check code format with black run: | black --check --diff --color . + - name: Run tests + run: | + pytest