From 99e03f8e4a0188b825d63306f84669b209e66f61 Mon Sep 17 00:00:00 2001 From: learnforpractice Date: Mon, 29 May 2023 17:43:34 +0800 Subject: [PATCH] Use ubuntu 20.04 in pipeline --- .github/workflows/python-app.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 0436990..808123e 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -25,7 +25,7 @@ jobs: strategy: matrix: python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] - os: ['windows-2019', 'ubuntu-18.04', 'macos-10.15'] + os: ['windows-2019', 'ubuntu-20.04', 'macos-10.15'] # python-version: [3.9] # os: ['windows-latest'] fail-fast: false @@ -90,7 +90,7 @@ jobs: python3 -m pytest -s -x test_testnet2.py -k test_hello python3 -m pytest -s -x test_testnet2.py -k test_deposit - name: auditwheel repair - if: ${{ matrix.os == 'ubuntu-18.04' }} + if: ${{ matrix.os == 'ubuntu-20.04' }} id: manylinuxwhlfile working-directory: ./dist run: | @@ -105,20 +105,20 @@ jobs: files: | ./dist/${{ steps.whlfile.outputs.value }} - name: Release manylinux wheel - if: ${{ matrix.os == 'ubuntu-18.04' && startsWith(github.ref, 'refs/tags/') }} + if: ${{ matrix.os == 'ubuntu-20.04' && startsWith(github.ref, 'refs/tags/') }} uses: softprops/action-gh-release@v1 with: files: | ./dist/wheelhouse/${{ steps.manylinuxwhlfile.outputs.value }} - name: Downloading whl files - if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-18.04' && matrix.python-version == '3.10' }} + if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.10' }} working-directory: dist run: | rm *.whl rm -r wheelhouse python ../scripts/download.py ${{ env.VERSION }} - name: Publish a Python distribution to PyPI - if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-18.04' && matrix.python-version == '3.10' }} + if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.10' }} uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__