Procházet zdrojové kódy

Added github action status badges per provider

Nuwan Goonasekera před 4 roky
rodič
revize
d33215fd2c
2 změnil soubory, kde provedl 29 přidání a 16 odebrání
  1. 13 0
      .github/workflows/integration.yaml
  2. 16 16
      README.rst

+ 13 - 0
.github/workflows/integration.yaml

@@ -70,6 +70,7 @@ jobs:
         run: pip install tox
 
       - name: Run tox
+        id: tox
         run: tox -e py${{ matrix.python-version }}-${{ matrix.cloud-provider }}
         env:
           PYTHONUNBUFFERED: "True"
@@ -100,7 +101,19 @@ jobs:
           CB_IMAGE_OS: ${{ secrets.CB_IMAGE_OS }}
           CB_PLACEMENT_OS: ${{ secrets.CB_PLACEMENT_OS }}
 
+      - name: Create Build Status Badge
+        if: ${{ always() }}
+        uses: schneegans/dynamic-badges-action@v1.1.0
+        with:
+          auth: ${{ secrets.BUILD_STATUS_GIST_SECRET }}
+          gistID: ${{ secrets.BUILD_STATUS_GIST_ID }}
+          filename: cloudbridge_py${{ matrix.python-version }}_${{ matrix.cloud-provider }}.json
+          label: ${{ matrix.cloud-provider }}
+          message: ${{ fromJSON('["passing", "failing"]')[steps.tox.outcome != 'success'] }}
+          color: ${{ fromJSON('["green", "red"]')[steps.tox.outcome != 'success'] }}
+
       - name: Coveralls
+        if: ${{ steps.tox.outcome == 'success' }}
         uses: AndreMiras/coveralls-python-action@develop
         with:
           github-token: ${{ secrets.GITHUB_TOKEN }}

+ 16 - 16
README.rst

@@ -25,33 +25,33 @@ Build Status Tests
    :target: http://cloudbridge.readthedocs.org/en/latest/?badge=latest
    :alt: Documentation Status
 
-.. |aws-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/1?use_travis_com=yes
-              :target: https://travis-ci.com/CloudVE/cloudbridge
+.. |aws-py38| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nuwang/d354f151eb8c9752da13e6dec012fb07/raw/cloudbridge_py3.8_aws.json
+              :target: https://github.com/CloudVE/cloudbridge/actions/
 
-.. |azure-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/2?use_travis_com=yes
-                :target: https://travis-ci.com/CloudVE/cloudbridge
+.. |azure-py38| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nuwang/d354f151eb8c9752da13e6dec012fb07/raw/cloudbridge_py3.8_azure.json
+                :target: https://github.com/CloudVE/cloudbridge/actions/
 
-.. |gcp-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/3?use_travis_com=yes
-              :target: https://travis-ci.com/CloudVE/cloudbridge
+.. |gcp-py38| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nuwang/d354f151eb8c9752da13e6dec012fb07/raw/cloudbridge_py3.8_gcp.json
+              :target: https://github.com/CloudVE/cloudbridge/actions/
 
-.. |mock-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/4?use_travis_com=yes
-              :target: https://travis-ci.com/CloudVE/cloudbridge
+.. |mock-py38| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nuwang/d354f151eb8c9752da13e6dec012fb07/raw/cloudbridge_py3.8_mock.json
+              :target: https://github.com/CloudVE/cloudbridge/actions/
 
-.. |os-py36| image:: https://travis-matrix-badges.herokuapp.com/repos/CloudVE/cloudbridge/branches/master/5?use_travis_com=yes
-             :target: https://travis-ci.com/CloudVE/cloudbridge
+.. |os-py38| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nuwang/d354f151eb8c9752da13e6dec012fb07/raw/cloudbridge_py3.8_openstack.json
+             :target: https://github.com/CloudVE/cloudbridge/actions/
 
 +---------------------------+----------------+
-| **Provider/Environment**  | **Python 3.6** |
+| **Provider/Environment**  | **Python 3.8** |
 +---------------------------+----------------+
-| **Amazon Web Services**   | |aws-py36|     |
+| **Amazon Web Services**   | |aws-py38|     |
 +---------------------------+----------------+
-| **Google Cloud Platform** | |gcp-py36|     |
+| **Google Cloud Platform** | |gcp-py38|     |
 +---------------------------+----------------+
-| **Microsoft Azure**       | |azure-py36|   |
+| **Microsoft Azure**       | |azure-py38|   |
 +---------------------------+----------------+
-| **OpenStack**             | |os-py36|      |
+| **OpenStack**             | |os-py38|      |
 +---------------------------+----------------+
-| **Mock Provider**         | |mock-py36|    |
+| **Mock Provider**         | |mock-py38|    |
 +---------------------------+----------------+
 
 Installation