]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add new GitHub Action to test deps on upgrade
authorZack Cerza <zack@cerza.org>
Thu, 28 Apr 2022 17:23:44 +0000 (11:23 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 28 Apr 2022 22:48:31 +0000 (16:48 -0600)
We've seen a couple regressions that are only visible when upgrading
and existing virtualenv.

Signed-off-by: Zack Cerza <zack@redhat.com>
.github/workflows/dependencies.yml [new file with mode: 0644]

diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml
new file mode 100644 (file)
index 0000000..5729a88
--- /dev/null
@@ -0,0 +1,47 @@
+name: dependencies
+
+on:
+  pull_request:
+    branches:
+      - master
+  workflow_dispatch:
+
+jobs:
+  upgrade:
+    name: Test dependencies
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest]
+        python: [3.6, 3.8]
+    steps:
+      - name: Set up Python
+        uses: actions/setup-python@v3
+        with:
+          python-version: ${{ matrix.python }}
+      - name: Checkout default branch
+        uses: actions/checkout@v3
+        with:
+          ref: master
+          path: teuthology
+      - name: virtualenv
+        run: |
+          pip install --user virtualenv
+          virtualenv ./virtualenv
+          cd ./virtualenv/lib/python*
+          touch no-global-site-packages.txt
+        working-directory: ./teuthology
+      - name: Initial bootstrap
+        run: ./bootstrap install
+        working-directory: ./teuthology
+      - name: Move initial repository
+        run: mv teuthology teuthology.orig
+      - name: Checkout desired ref
+        uses: actions/checkout@v3
+        with:
+          path: teuthology
+      - name: Move virtualenv to new checkout
+        run: mv ./teuthology.orig/virtualenv ./teuthology/
+      - name: Re-run bootstrap
+        run: ./bootstrap install
+        working-directory: ./teuthology