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 <[email protected]>
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

Reply via email to