From d3bf5b2db5da17d56ccd5c180cd72c3ab98db6c3 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Tue, 11 Feb 2025 10:00:26 +0800 Subject: [PATCH] tests: fix unintended redirection --- .github/workflows/tests.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3e2aaaa..4243b3c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -50,7 +50,10 @@ jobs: sudo apt install -y libcurl4-openssl-dev # werkzeug is pinned for httpbin compatibility https://github.com/postmanlabs/httpbin/issues/673 - name: Install Python deps - run: pip install -U ${{ matrix.deps }} pytest 'pytest-asyncio>=0.24' pytest-httpbin pytest-rerunfailures structlog tomli platformdirs lxml jq 'werkzeug<2.1' awesomeversion + env: + # use env to avoid `>` being redirection + deps: ${{ matrix.deps }} + run: pip install -U $deps pytest 'pytest-asyncio>=0.24' pytest-httpbin pytest-rerunfailures structlog tomli platformdirs lxml jq 'werkzeug<2.1' awesomeversion # don't use binary distribution because: # hardcoded cacert path doesn't work on Ubuntu (should have been resolved?) # limited compression support (only deflate & gzip)