Also build and run testing Docker image on GHA to continuously very it
works.
@@ -205,6 +205,31 @@ jobs:
run: |
script -e -c "tox -e black-check,checks,import-timings,lint,pylint"
+ build_test_docker_image:
+ name: Build and Verify Docker Image
+ runs-on: ubuntu-latest
+
+ needs: pre_job
+ if: ${{ needs.pre_job.outputs.should_skip == 'false' || github.ref == 'refs/heads/trunk' }}
+
+ strategy:
+ matrix:
+ python_version: [3.7]
+
+ steps:
+ - uses: actions/checkout@master
+ with:
+ fetch-depth: 1
+
+ - name: Build Testing Docker Image
+ run: |
+ docker build -f contrib/Dockerfile -t libcloud_runtest_img .
+
+ - name: Verify Image Works
+ run: |
+ # We run all the checks in the image to verify it works
+ docker run libcloud_runtest_img
+
security_checks:
name: Run Security Checks
runs-on: ubuntu-latest
