Run micro benchmarks on CI.
@@ -203,6 +203,48 @@ jobs:
run: |
script -e -c "tox -e black-check,checks,import-timings,lint,pylint"
+ micro-benchmarks:
+ name: Micro Benchmarks
+ 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: Use Python ${{ matrix.python_version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python_version }}
+
+ - name: Install OS / deb dependencies
+ run: |
+ sudo DEBIAN_FRONTEND=noninteractive apt-get update
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq graphviz gcc libvirt-dev
+
+ - name: Cache Python Dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements-tests.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+
+ - name: Install Python Dependencies
+ run: |
+ pip install "tox==3.24.4"
+
+ - name: Run Micro Benchmarks
+ run: |
+ script -e -c "tox -e micro-benchmarks"
+
docs:
name: Build and upload Documentation
runs-on: ubuntu-latest
