From a2aa4ee8ac6a53d1cb32a8bdd0d40a9eb3ecb971 Mon Sep 17 00:00:00 2001 From: offa Date: Wed, 1 Jun 2022 20:31:13 +0200 Subject: [PATCH 1/3] Enable Dependabot --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d54096e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 + +updates: + - package-ecosystem: pipenv + directory: / + schedule: + interval: weekly From 7c3e5f978a19a4c6529026319e61c1d274eadb27 Mon Sep 17 00:00:00 2001 From: offa Date: Wed, 1 Jun 2022 20:33:14 +0200 Subject: [PATCH 2/3] Add Github Action CI --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ Pipfile | 2 +- README.md | 2 ++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..97862ec --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: ci + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python: [ "3.6", "3.7", "3.8", "3.9", "3.10" ] + name: python-${{ matrix.python }} + steps: + - name: Checkout + uses: actions/checkout@main + - name: Setup python-${{ matrix.python }} + uses: actions/setup-python@main + with: + python-version: ${{ matrix.python }} + cache: "pipenv" + cache-dependency-path: "Pipfile" + - name: Install Dependencies + run: | + pip install pipenv + pipenv install -d + - name: Test + run: pipenv run pytest diff --git a/Pipfile b/Pipfile index 31e69e1..58ea085 100644 --- a/Pipfile +++ b/Pipfile @@ -14,7 +14,7 @@ GitPython = ">= 2.1.8" colorama = ">= 0.3.9" [requires] -python_version = "3.7" +python_version = "3" [scripts] test = "pytest gitup -v -rxw" diff --git a/README.md b/README.md index 3bc5aaf..8696eb1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ __gitup__ (the _git-repo-updater_) +[![ci](https://github.com/earwig/git-repo-updater/actions/workflows/ci.yml/badge.svg)](https://github.com/earwig/git-repo-updater/actions/workflows/ci.yml) + gitup is a tool for updating multiple git repositories at once. It is smart enough to handle several remotes, dirty working directories, diverged local branches, detached HEADs, and more. It was originally created to manage a large From 0161e55a07783761a2d08fe428db5ee6f82fbc51 Mon Sep 17 00:00:00 2001 From: offa Date: Wed, 1 Jun 2022 20:54:19 +0200 Subject: [PATCH 3/3] Remove Travis CI --- .travis.yml | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e505dee..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: python - -dist: bionic - -python: - - "3.6" - - "3.7" - - "3.8" - - -install: - - pipenv install - -script: - - pytest