From 565011ce76ad4b4a4d3bca74246179e9fecd1b88 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 9 Mar 2022 13:46:04 +0100 Subject: ci.yml: Upgrade Python and actions/setup-python --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2ad9e4..cf1cb75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,10 +16,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 with: - python-version: 3.9 + python-version: "3.10" - name: Install packages run: sudo apt-get install libcurl4-gnutls-dev libgnutls28-dev - name: Install dependencies -- cgit v1.2.1 From 6bb8a42a4fa31009ccaf41f6c9e4a7ac3eedd25b Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 10 Mar 2022 06:23:35 +0100 Subject: Upgrade actions/checkout and actions/setup-python --- .github/workflows/ci-macos.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 02a67d6..4a09619 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -22,12 +22,12 @@ jobs: python-version: ["3.7", "3.8", "3.9", "3.10"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Select Xcode version # Note: had to select a Version of Xcode that has macOS 11.x SDK run: sudo xcode-select -s '/Applications/Xcode_13.0.app/Contents/Developer' - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -36,8 +36,6 @@ jobs: pip install flake8 pytest if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi - name: Build - run: | - make + run: make - name: Test with pytest - run: | - make test + run: make test -- cgit v1.2.1 From 5af3739670bd4c283e724aade996d732db4ec993 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 10 Mar 2022 06:28:40 +0100 Subject: Upgrade actions/checkout and actions/setup-python --- .github/workflows/ci-windows.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index fb2febd..b8f5357 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -18,12 +18,12 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: ./.github/actions/msvc-dev-cmd with: arch: 'x86' - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} architecture: 'x86' @@ -38,21 +38,18 @@ jobs: -username "pycurl" -password "${{ secrets.GITHUB_TOKEN }}" - name: Install packages - run: | - vcpkg install curl[core,http2,non-http,openssl,ssh]:x86-windows + run: vcpkg install curl[core,http2,non-http,openssl,ssh]:x86-windows - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest wheel delvewheel - pip install -r requirements-dev.txt + pip install wheel delvewheel + pip install flake8 pytest -r requirements-dev.txt - name: Build - run: | - python setup.py bdist_wheel --with-openssl --curl-dir=$env:VCPKG_INSTALLATION_ROOT/packages/curl_x86-windows --openssl-dir=$env:VCPKG_INSTALLATION_ROOT/packages/openssl_x86-windows --openssl-lib-name=libssl.lib --link-arg=libcrypto.lib + run: python setup.py bdist_wheel --with-openssl --curl-dir=$env:VCPKG_INSTALLATION_ROOT/packages/curl_x86-windows --openssl-dir=$env:VCPKG_INSTALLATION_ROOT/packages/openssl_x86-windows --openssl-lib-name=libssl.lib --link-arg=libcrypto.lib - name: Repair & install built wheel run: | delvewheel repair --add-path $VCPKG_INSTALLATION_ROOT/installed/x86-windows/bin dist/*.whl pip install wheelhouse/*.whl shell: bash - name: Test with pytest - run: | - pytest -v + run: pytest -v -- cgit v1.2.1