You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2020/12/13 12:46:35 UTC

[libcloud] branch github_actions_take_2 created (now 91f30a0)

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a change to branch github_actions_take_2
in repository https://gitbox.apache.org/repos/asf/libcloud.git.


      at 91f30a0  Add WIP config for Github actions workflow.

This branch includes the following new commits:

     new 91f30a0  Add WIP config for Github actions workflow.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[libcloud] 01/01: Add WIP config for Github actions workflow.

Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch github_actions_take_2
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 91f30a0c658a8da7806af5dfbeb8b19f9bdce193
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sun Dec 13 13:45:08 2020 +0100

    Add WIP config for Github actions workflow.
---
 .github/workflows/main.yml | 113 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 113 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..9b9a840
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,113 @@
+name: CI
+
+on: [push]
+
+jobs:
+  unit_tests:
+    name: Run Unit Tests
+    runs-on: ${{ matrix.os }}
+
+    strategy:
+      matrix:
+        python_version: [3.5, 3.6, 3.7, 3.8, 3.9, pypy3]
+        os: [ubuntu-latest]
+
+    steps:
+    - uses: actions/checkout@master
+      with:
+        fetch-depth: 1
+    - name: Use Python ${{ matrix.python_version }}
+      uses: actions/setup-python@v1
+      with:
+        version: ${{ matrix.python_version }}
+    - name: Install OS / deb dependencies
+      run: |
+        sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq gcc libvirt-dev
+    - name: Install Python Dependencies
+      run: |
+        pip install "tox==3.20.1"
+    - name: Run tox target
+      run: |
+        tox -e py${{ matrix.python_version }}
+
+  code_coverage:
+    name: Generate Code Coverage
+    runs-on: ubuntu-latest
+
+    strategy:
+      matrix:
+        python_version: [3.7]
+
+    steps:
+    - uses: actions/checkout@master
+      with:
+        fetch-depth: 1
+    - name: Use Python ${{ matrix.python_version }}
+      uses: actions/setup-python@v1
+      with:
+        version: ${{ matrix.python_version }}
+    - name: Install OS / deb dependencies
+      run: |
+        sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq graphviz gcc libvirt-dev
+    - name: Install Python Dependencies
+      run: |
+        pip install "tox==3.20.1"
+    - name: Run Checks
+      run: |
+        tox -e coverage-travis
+
+  lint_checks:
+    name: Run various lint checks
+    runs-on: ubuntu-latest
+
+    strategy:
+      matrix:
+        python_version: [3.7]
+
+    steps:
+    - uses: actions/checkout@master
+      with:
+        fetch-depth: 1
+    - name: Use Python ${{ matrix.python_version }}
+      uses: actions/setup-python@v1
+      with:
+        version: ${{ matrix.python_version }}
+    - name: Install OS / deb dependencies
+      run: |
+        sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq graphviz gcc libvirt-dev
+    - name: Install Python Dependencies
+      run: |
+        pip install "tox==3.20.1"
+    - name: Run Checks
+      run: |
+        tox -e checks,import-timings,lint,pylint
+
+  docs:
+    name: Build and upload Documentation
+    runs-on: ubuntu-latest
+
+    strategy:
+      matrix:
+        python_version: [3.7]
+
+    steps:
+    - uses: actions/checkout@master
+      with:
+        fetch-depth: 1
+    - name: Use Python ${{ matrix.python_version }}
+      uses: actions/setup-python@v1
+      with:
+        version: ${{ matrix.python_version }}
+    - name: Install OS / deb dependencies
+      run: |
+        sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq graphviz gcc libvirt-dev
+    - name: Install Python Dependencies
+      run: |
+        pip install "tox==3.20.1"
+    - name: Build Docs
+      run: |
+        tox -e docs-travis
+    - name: Trigger ReadTheDocs build
+      run: |
+        - pip3 install requests
+        - python3 ./contrib/trigger_rtd_build.py