From 13f080eb682f988ea97eae821dd0da5a7a464a9b Mon Sep 17 00:00:00 2001 From: Shlomi Hod <6306135+shlomihod@users.noreply.github.com> Date: Fri, 2 Apr 2021 08:11:16 -0400 Subject: [PATCH 1/6] create ci.yaml for github actions (#53) --- .github/workflows/ci.yml | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) 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..91d0d34 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,49 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Before install + run: | + python -m pip install -U --upgrade pip setuptools virtualenv + python -m pip install -U --upgrade pipenv + make doctor + + - name: Install + run: make install + + - name: Script + run: make ci + + - name: After success + run: | + python -m pip install -U coveralls scrutinizer-ocular + coveralls + ocular From d36d22bd387225db3d9e078bfcf7a498f5edcac8 Mon Sep 17 00:00:00 2001 From: Shlomi Hod <6306135+shlomihod@users.noreply.github.com> Date: Fri, 2 Apr 2021 08:28:22 -0400 Subject: [PATCH 2/6] update github actions for coveralls --- .github/workflows/ci.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91d0d34..088a3cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,14 +1,7 @@ -# This is a basic workflow to help you get started with Actions - name: CI # Controls when the action will run. -on: - pull_request: - branches: [ master ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: +on: [push, pull_request, workflow_dispatch] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -47,3 +40,5 @@ jobs: python -m pip install -U coveralls scrutinizer-ocular coveralls ocular + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From d6bb8de919cda26f39b76dfac83fccf0b4271d41 Mon Sep 17 00:00:00 2001 From: Shlomi Hod <6306135+shlomihod@users.noreply.github.com> Date: Fri, 2 Apr 2021 08:31:13 -0400 Subject: [PATCH 3/6] fix indentation in ci.yaml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 088a3cc..ab11353 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,9 +36,9 @@ jobs: run: make ci - name: After success + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | python -m pip install -U coveralls scrutinizer-ocular coveralls ocular - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From bd2a149ee8cd96bd853369e14a09f6a0fbdba3f7 Mon Sep 17 00:00:00 2001 From: Shlomi Hod <6306135+shlomihod@users.noreply.github.com> Date: Fri, 2 Apr 2021 08:42:41 -0400 Subject: [PATCH 4/6] set service name for coveralls --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab11353..0a1f560 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,5 +40,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | python -m pip install -U coveralls scrutinizer-ocular - coveralls + coveralls --service=github ocular From a4caa33583a03d37c187267c3c6a16c5d4111ec0 Mon Sep 17 00:00:00 2001 From: Shlomi Hod <6306135+shlomihod@users.noreply.github.com> Date: Fri, 2 Apr 2021 08:56:58 -0400 Subject: [PATCH 5/6] remove python 2.7 from github actions ci --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a1f560..1fff003 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + python-version: [3.5, 3.6, 3.7, 3.8] # Steps represent a sequence of tasks that will be executed as part of the job steps: From e6bedbfcebf5fad8f89f556db2d3fcb04b3e0c7d Mon Sep 17 00:00:00 2001 From: shlomihod Date: Fri, 2 Apr 2021 15:57:34 +0300 Subject: [PATCH 6/6] finalize change to github actions --- .travis.yml | 41 ----------------------------------------- CHANGELOG.rst | 2 ++ README.rst | 6 +++--- 3 files changed, 5 insertions(+), 44 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2b14ebc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -language: python -python: - - "3.6" - - "3.7" - - "3.7" - - "3.8" - # - "nightly" # nightly build - -cache: - pip: true - directories: - - .venv - -env: - global: - - RANDOM_SEED=0 - # https://github.com/travis-ci/travis-ci/issues/7940 - - BOTO_CONFIG=/dev/null - -before_install: - - "sudo apt-get install python3-tk" - # Work around https://github.com/jaraco/zipp/issues/40 - - python -m pip install -U --upgrade pip setuptools virtualenv - - python -m pip install -U --upgrade pipenv - - make doctor - -install: - - make install - -script: - - make ci - -after_success: - - python -m pip install -U coveralls scrutinizer-ocular - - coveralls - - ocular - -notifications: - email: - on_success: never - on_failure: never diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a28ff43..d28c05b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,8 @@ Revision History - Fix new pagacke dependencies +- Switch from Travis CI to Github Actions + 0.1.2 (2020/09/15) ------------------ diff --git a/README.rst b/README.rst index 005a3df..c5bc199 100644 --- a/README.rst +++ b/README.rst @@ -8,9 +8,9 @@ Responsibly :alt: Join the chat at https://gitter.im/ResponsiblyAI/responsibly :target: https://gitter.im/ResponsiblyAI/responsibly -.. image:: https://img.shields.io/travis/ResponsiblyAI/responsibly/master.svg - :target: https://travis-ci.org/ResponsiblyAI/responsibly - +.. image:: https://img.shields.io/github/workflow/status/ResponsiblyAI/responsibly/CI/master.svg + :target: https://github.com/ResponsiblyAI/responsibly/actions/workflows/ci.yml + .. image:: https://img.shields.io/coveralls/ResponsiblyAI/responsibly/master.svg :target: https://coveralls.io/r/ResponsiblyAI/responsibly