Skip to content

Commit

Permalink
fixup! test: swith to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
jimf5 committed Dec 6, 2023
1 parent 8b200a6 commit 765f330
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/nginx-otel-module-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ 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
working-directory: nginx
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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 765f330

Please sign in to comment.