From c3b944fdd84eb166ee49b108e0a99dfb53bc408c Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Tue, 26 Sep 2023 17:24:35 +0300 Subject: [PATCH 01/11] add CI for unit tests --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9c3462b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: Unit tests for Basic Class + +on: + pull_request: + branches: + - develop + - main + +defaults: + run: + shell: bash + +jobs: + + test: + name: 'Run unit tests' + runs-on: ubuntu-latest + steps: + - name: Set up Python ${{ env.DEFAULT_PYTHON }} + id: python + uses: actions/setup-python@v4 + with: + python-version: ${{ env.DEFAULT_PYTHON }} + + - name: Upgrade pip + run: python -m pip install --upgrade pip setuptools wheel + + - name: Install dependencies + run: | + pip install -I -r requirements + + - name: Run tests + run: python -m pytest + + From aa24a82241361f93e3e1a19d6b4f80e70f4c8ee2 Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Tue, 26 Sep 2023 17:25:16 +0300 Subject: [PATCH 02/11] add on push workflow --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c3462b..31ffbe9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,11 @@ name: Unit tests for Basic Class on: + push: + branches: + - develop + - main + pull_request: branches: - develop From f0b60bbc3b27ba93a93911e107f30a52a530d5c8 Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Tue, 26 Sep 2023 17:26:17 +0300 Subject: [PATCH 03/11] update worklflow --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 31ffbe9..8b61567 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,8 +31,7 @@ jobs: run: python -m pip install --upgrade pip setuptools wheel - name: Install dependencies - run: | - pip install -I -r requirements + run: pip install -r requirements - name: Run tests run: python -m pytest From f257eef9f2ada9b846489e32d2282a7b517f0de2 Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Tue, 26 Sep 2023 17:27:05 +0300 Subject: [PATCH 04/11] update worklflow --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b61567..0ddae96 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: run: python -m pip install --upgrade pip setuptools wheel - name: Install dependencies - run: pip install -r requirements + run: pip install -r requirements.txt - name: Run tests run: python -m pytest From b6c1e5f49153d4bfb668c9f7f63f65e3c7f4e36a Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Tue, 26 Sep 2023 17:30:02 +0300 Subject: [PATCH 05/11] update worklflow --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ddae96..323cab3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: run: python -m pip install --upgrade pip setuptools wheel - name: Install dependencies - run: pip install -r requirements.txt + run: pip install pytest - name: Run tests run: python -m pytest From cc33c50d96ea603eb43e470ba7b66b921da8bf1a Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Tue, 26 Sep 2023 17:37:53 +0300 Subject: [PATCH 06/11] update worklflow --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 323cab3..0ada443 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,7 @@ on: defaults: run: shell: bash + working-directory: . jobs: From 3b7cbd924425ba27e4bf61d60873d51899bcaf5c Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Tue, 26 Sep 2023 17:41:42 +0300 Subject: [PATCH 07/11] update worklflow --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ada443..6dd3e98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,6 @@ jobs: run: pip install pytest - name: Run tests - run: python -m pytest + run: python -m pytest ./tests From 801c44935440021b065194db31eae3becc71c602 Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Tue, 26 Sep 2023 17:45:17 +0300 Subject: [PATCH 08/11] update worklflow --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6dd3e98..fde99e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,6 +34,9 @@ jobs: - name: Install dependencies run: pip install pytest + - name: List directory contents + run: ls -la + - name: Run tests run: python -m pytest ./tests From ea3b4689010ee01455e2d92169ac9978ea867e9b Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Thu, 28 Sep 2023 21:23:06 +0300 Subject: [PATCH 09/11] update worklflow --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fde99e7..cb2c6e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,9 @@ jobs: name: 'Run unit tests' runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up Python ${{ env.DEFAULT_PYTHON }} id: python uses: actions/setup-python@v4 From 5106d443ea665da77e3f9c8148e37fa6881afe52 Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Thu, 28 Sep 2023 21:24:10 +0300 Subject: [PATCH 10/11] update worklflow --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cb2c6e3..c158d0a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,7 +35,7 @@ jobs: run: python -m pip install --upgrade pip setuptools wheel - name: Install dependencies - run: pip install pytest + run: pip install -r requirements.txt - name: List directory contents run: ls -la From 67d9ed936cb7d5b1e24644b95e70be5dc9029bab Mon Sep 17 00:00:00 2001 From: maxim-lixakov Date: Thu, 28 Sep 2023 21:26:09 +0300 Subject: [PATCH 11/11] update worklflow --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c158d0a..2438ecc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,6 +34,9 @@ jobs: - name: Upgrade pip run: python -m pip install --upgrade pip setuptools wheel + - name: Upgrade pyOpenSSl + run: pip install pyOpenSSL --upgrade + - name: Install dependencies run: pip install -r requirements.txt