From 66c0b0c6cf607163a6bcdb508f19a870b61f4501 Mon Sep 17 00:00:00 2001 From: Alex Dvornik Date: Fri, 20 Feb 2026 10:57:28 +0100 Subject: [PATCH 1/7] Added ci for tests. First testing --- .github/workflows/ci-tests.yml | 46 ++++++++++++++++++++++++++++++++++ .gitignore | 2 +- pyproject.toml | 2 +- 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci-tests.yml diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml new file mode 100644 index 0000000..523699f --- /dev/null +++ b/.github/workflows/ci-tests.yml @@ -0,0 +1,46 @@ +name: Tests +on: + pull-request: + branches: ["main", "dev"] +jobs: + lint: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + python-version: [ '3.12' ] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + working-directory: . + run: | + pip install -e .[dev] + - name: Run flake8 + working-directory: . + run: | + flake8 ./src/ + test: + needs: lint + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + python-version: [ '3.12' ] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + working-directory: . + run: | + pip install -e .[dev] + - name: Run flake8 + working-directory: . + run: | + pytest diff --git a/.gitignore b/.gitignore index 2ed2400..3abd807 100644 --- a/.gitignore +++ b/.gitignore @@ -176,7 +176,7 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +.idea/ # Abstra # Abstra is an AI-powered process automation framework. diff --git a/pyproject.toml b/pyproject.toml index a5be416..81d270d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,4 +37,4 @@ Issues = "https://github.com/pim-n/pg-rad/issues" [project.optional-dependencies] -dev = ["pytest", "mkinit", "notebook", "mkdocs-material", "mkdocstrings-python", "mkdocs-jupyter"] \ No newline at end of file +dev = ["pytest", "mkinit", "notebook", "mkdocs-material", "mkdocstrings-python", "mkdocs-jupyter", "flake8"] \ No newline at end of file From 79ba5f7c834037208f34be10e0237802d6c16dc8 Mon Sep 17 00:00:00 2001 From: Alex Dvornik <73471282+ADv0rnik@users.noreply.github.com> Date: Fri, 20 Feb 2026 11:00:22 +0100 Subject: [PATCH 2/7] Fix event name for pull request trigger --- .github/workflows/ci-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 523699f..f28f57b 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -1,6 +1,6 @@ name: Tests on: - pull-request: + pull_request: branches: ["main", "dev"] jobs: lint: From db86ee42b29a170ff3401d534c90a8b774fa3089 Mon Sep 17 00:00:00 2001 From: Alex Dvornik Date: Fri, 20 Feb 2026 11:16:37 +0100 Subject: [PATCH 3/7] Updated config file for ci. Added dispatch --- .github/workflows/ci-tests.yml | 41 +++++++++++++--------------------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 523699f..9cffa86 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -2,45 +2,36 @@ name: Tests on: pull-request: branches: ["main", "dev"] + workflow_dispatch: + jobs: - lint: + tests: runs-on: ${{ matrix.os }} strategy: matrix: os: [ ubuntu-latest, windows-latest ] python-version: [ '3.12' ] + steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + - name: Checkout + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: pip + - name: Install Dependencies working-directory: . run: | + python -m pip install --upgrade pip pip install -e .[dev] - - name: Run flake8 - working-directory: . + + - name: Run linting run: | flake8 ./src/ - test: - needs: lint - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ ubuntu-latest, windows-latest ] - python-version: [ '3.12' ] - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install Dependencies - working-directory: . - run: | - pip install -e .[dev] - - name: Run flake8 - working-directory: . + + - name: Run tests run: | pytest From 8c0eeb3127d287ca051f85e97254867b46fb4187 Mon Sep 17 00:00:00 2001 From: Alex Dvornik Date: Fri, 20 Feb 2026 11:17:36 +0100 Subject: [PATCH 4/7] Updated config file for ci. Added dispatch --- .github/workflows/ci-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 9cffa86..dc4052a 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -1,6 +1,6 @@ name: Tests on: - pull-request: + pull_request: branches: ["main", "dev"] workflow_dispatch: From d32fd411bbf55889902d783d46d52cfecff17377 Mon Sep 17 00:00:00 2001 From: Alex Dvornik Date: Fri, 20 Feb 2026 11:25:51 +0100 Subject: [PATCH 5/7] Updated config. Second test --- .github/workflows/ci-tests.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index dc4052a..fea8993 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -15,23 +15,18 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 - - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: pip - - name: Install Dependencies - working-directory: . run: | python -m pip install --upgrade pip pip install -e .[dev] - - name: Run linting run: | flake8 ./src/ - - name: Run tests run: | pytest From 81d2cd6f9ec793a636c4efb7605f56b10bd2ef6f Mon Sep 17 00:00:00 2001 From: Alex Dvornik <73471282+ADv0rnik@users.noreply.github.com> Date: Fri, 20 Feb 2026 11:30:52 +0100 Subject: [PATCH 6/7] Fix indentation for checkout action in CI workflow --- .github/workflows/ci-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index fea8993..3c3d4d3 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout - - uses: actions/checkout@v4 + uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: From 2d5ba0ac3c630f2d69b2df9f5c73d581da377bde Mon Sep 17 00:00:00 2001 From: Alex Dvornik Date: Fri, 20 Feb 2026 11:34:21 +0100 Subject: [PATCH 7/7] Updated config. Third test --- .github/workflows/ci-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 3c3d4d3..48cfb55 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -27,6 +27,7 @@ jobs: - name: Run linting run: | flake8 ./src/ + - name: Run tests run: | pytest