Jaypore CI

> Jaypore CI: Minimal, Offline, Local CI system.
Log | Files | Refs | README

commit eba6687076924afb065aa98d7afcf38f15378781
parent 3130241879990531edbbd8ea44bf2e838bc9807a
Author: arjoonn <arjoonn@noreply.localhost>
Date:   Wed, 22 Feb 2023 17:55:47 +0000

Publish htmlcov in docs (!50)

Branch auto created by JayporeCI

```jayporeci
╔ 🟢 : JayporeCI [sha 3f1e8b8904]
┏━ build_and_test
┃
┃ 🟢 : JciEnv    [2607890b]   0: 2
┃ 🟢 : Jci       [08887aa2]   0: 6            ❮-- ['JciEnv']
┃ 🟢 : black     [0ac29b4f]   0: 0            ❮-- ['JciEnv']
┃ 🟢 : pylint    [4c3eab0b]   0: 6            ❮-- ['JciEnv']
┃ 🟢 : pytest    [d93c7928]   1:19 Cov: 81%   ❮-- ['JciEnv']
┗━━━━━━━━━━━━━━━━━━━━━━━━━┛
```

Co-authored-by: arjoonn sharma <arjoonn@midpathsoftware.com>
Reviewed-on: https://gitea.midpathsoftware.com/midpath/jaypore_ci/pulls/50

Diffstat:
Mcicd/build_and_publish_docs.sh | 1+
Mdocs/source/index.rst | 5++---
Mjaypore_ci/remotes/gitea.py | 6+++---
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/cicd/build_and_publish_docs.sh b/cicd/build_and_publish_docs.sh @@ -10,6 +10,7 @@ build() { sphinx-build docs/source/ docs/build cp cicd/pre-push.sh docs/build cp setup.sh docs/build + cp -r htmlcov /jaypore_ci/run/docs/build/ cp -r secrets/bin docs/build wget -O docs/build/sops https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v3.7.3.linux wget -O ./age.tar.gz https://github.com/FiloSottile/age/releases/download/v1.0.0/age-v1.0.0-linux-amd64.tar.gz diff --git a/docs/source/index.rst b/docs/source/index.rst @@ -7,9 +7,8 @@ ====== - **Jaypore CI** is a *small*, *very flexible*, and *powerful* system for automation within software projects. -- Coverage : |coverage| -- Version : |package_version| on `PyPi <https://pypi.org/project/jaypore-ci/>`_ - +- `Coverage </htmlcov>`_ : |coverage| +- `PyPi <https://pypi.org/project/jaypore-ci/>`_ : |package_version| TLDR diff --git a/jaypore_ci/remotes/gitea.py b/jaypore_ci/remotes/gitea.py @@ -52,7 +52,7 @@ class Gitea(Remote): # pylint: disable=too-many-instance-attributes self.repo = repo self.token = token self.timeout = 10 - self.base_branch = "main" + self.base_branch = "develop" # --- self.__pr_id__ = None @@ -89,9 +89,9 @@ class Gitea(Remote): # pylint: disable=too-many-instance-attributes if ( r.status_code == 404 and r.json()["message"] == "IsBranchExist" - and self.base_branch != "develop" + and self.base_branch != "main" ): - self.base_branch = "develop" + self.base_branch = "main" return self.get_pr_id() self.logging().debug()( "Failed gitea api",