Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Feb 10, 2025
1 parent e84f992 commit 54ec815
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-${{ matrix.deps }}-
${{ runner.os }}-${{ env.cache-name }}-
- name: workaround pycurl wheel
if: ${{ contains(matrix.deps, 'pycurl') }}
run: |
sudo mkdir -p /etc/pki/tls/certs
sudo ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
- name: Install pycurl deps
if: ${{ contains(matrix.deps, 'pycurl') }}
Expand All @@ -56,6 +51,13 @@ jobs:
# 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
# don't use binary distribution because:
# hardcoded cacert path doesn't work on Ubuntu
# limited compression support (only deflate & gzip)
- name: Install pycurl
if: ${{ contains(matrix.deps, 'pycurl') }}
run: |
pip install -U pycurl --no-binary
- name: Decrypt keys
env:
KEY: ${{ secrets.KEY }}
Expand All @@ -78,7 +80,7 @@ jobs:
sudo sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=0
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Setup upterm session
uses: lhotari/action-upterm@v1
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Run pytest
run: scripts/run_cached_tests
1 change: 0 additions & 1 deletion nvchecker/httpclient/tornado_httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def setup_curl(curl):

if SSL_CERT_FILE:
curl.setopt_string(pycurl.CAINFO, SSL_CERT_FILE)
# some servers insist sending us compressed content
curl.setopt_string(pycurl.ACCEPT_ENCODING, "")

class TornadoSession(BaseSession):
Expand Down

0 comments on commit 54ec815

Please sign in to comment.