]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add GitHub Actions definition for CI
authorZack Cerza <zack@redhat.com>
Wed, 15 Sep 2021 20:21:31 +0000 (14:21 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 15 Sep 2021 23:05:16 +0000 (17:05 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
.github/workflows/ci.yml [new file with mode: 0644]

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644 (file)
index 0000000..bb218aa
--- /dev/null
@@ -0,0 +1,28 @@
+name: CI
+
+on:
+  pull_request:
+    branches:
+      - master
+  workflow_dispatch:
+
+jobs:
+  test:
+    name: CI on python${{ matrix.python }} via ${{ matrix.os }}
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest]
+        python: [3.6, 3.9]
+    steps:
+      - uses: actions/checkout@v2
+      - name: Setup Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: ${{ matrix.python }}
+      - name: Install tox
+        run: pip install tox
+      - name: Run flake8
+        run: tox -e flake8
+      - name: Run unit tests
+        run: tox -e py3