From 765f3302452bfffa188f42f1e43bcecdeeaf64e8 Mon Sep 17 00:00:00 2001 From: Eugene Grebenschikov Date: Tue, 5 Dec 2023 16:42:12 -0800 Subject: [PATCH] fixup! test: swith to pytest --- .github/workflows/nginx-otel-module-check.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/nginx-otel-module-check.yml b/.github/workflows/nginx-otel-module-check.yml index 94ba71e..d223f1e 100644 --- a/.github/workflows/nginx-otel-module-check.yml +++ b/.github/workflows/nginx-otel-module-check.yml @@ -11,6 +11,11 @@ jobs: run: | sudo apt-get update sudo apt-get install -y cmake libc-ares-dev libre2-dev + - name: Cache nginx build + uses: actions/cache@v3 + with: + path: nginx + key: ${{ runner.os }}-nginx - name: Checkout nginx run: hg clone http://hg.nginx.org/nginx/ - name: Configure nginx @@ -18,11 +23,6 @@ jobs: run: | auto/configure --with-compat --with-debug --with-http_ssl_module \ --with-http_v2_module --with-http_v3_module - - name: Cache nginx build - uses: actions/cache@v3 - with: - path: nginx - key: ${{ runner.os }}-nginx - name: Create build directory run: mkdir build - name: Build module @@ -45,7 +45,6 @@ jobs: - name: Restore cached nginx build uses: actions/cache/restore@v3 with: - name: Saved nginx build path: nginx key: ${{ runner.os }}-nginx - name: Download module @@ -60,6 +59,6 @@ jobs: - name: Run tests working-directory: tests run: | - PYTHONPATH=${PWD} TEST_NGINX_GLOBALS= \ + PYTHONPATH=${PWD} TEST_NGINX_GLOBALS=\ "load_module ${PWD}/../build/ngx_otel_module.so;" \ pytest --log-cli-level=debug