From 4c609cac5973a93f27dae7b82de6e3e2e5bf31e0 Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Wed, 26 Jun 2024 23:46:59 -0400 Subject: [PATCH] Work around SSL error in 3.5 CI setup --- .github/workflows/main.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 1c1934a..5d2924b 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -45,6 +45,9 @@ jobs: env: DARCS_EMAIL: foo steps: + - if: ${{ matrix.python-version == '3.5' }} + run: | + echo "PIP_TRUSTED_HOST=pypi.python.org pypi.org files.pythonhosted.org" >> $GITHUB_ENV - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: @@ -90,8 +93,7 @@ jobs: - if: ${{ matrix.python-version == '3.5' || matrix.python-version == '3.6' }} run: | cp poetry.legacy.lock poetry.lock - echo "PIP_ARGS=--trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org" >> $GITHUB_ENV - run: | - pip install ${PIP_ARGS} poetry + pip install poetry poetry install poetry run pytest --verbose --cov --cov-report term-missing