@@ -25,14 +25,14 @@ jobs:
2525 strategy :
2626 matrix :
2727 python-version : [3.7, 3.8, 3.9, "3.10", "3.11"]
28- os : ['windows-2019', 'ubuntu-18 .04', 'macos-10.15 ']
28+ os : ['windows-2019', 'ubuntu-20 .04', 'macos-12 ']
2929 # python-version: [3.9]
3030 # os: ['windows-latest']
3131 fail-fast : false
3232
3333 steps :
3434 - name : Install scoop
35- if : ${{ matrix.os == 'windows-2019' }}
35+ if : ${{ matrix.os == 'windows-2019' }}
3636 run : |
3737 iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
3838 scoop install ninja gcc
@@ -79,18 +79,19 @@ jobs:
7979 run : |
8080 python -m pip uninstall mixin-python -y;python -m pip install ./dist/${{ steps.whlfile.outputs.value }}
8181 - name : Test
82+ if : ${{ matrix.os != 'windows-2019' }}
8283 working-directory : tests
8384 run : |
8485 python -m pip install -r ../requirements-dev.txt
8586 python3 -m pytest -s -x test_mixin_api.py
86- - name : Test
87+ - name : Test2
8788 if : ${{ matrix.os != 'windows-2019' }}
8889 working-directory : tests
8990 run : |
9091 python3 -m pytest -s -x test_testnet2.py -k test_hello
9192 python3 -m pytest -s -x test_testnet2.py -k test_deposit
9293 - name : auditwheel repair
93- if : ${{ matrix.os == 'ubuntu-18 .04' }}
94+ if : ${{ matrix.os == 'ubuntu-20 .04' }}
9495 id : manylinuxwhlfile
9596 working-directory : ./dist
9697 run : |
@@ -105,20 +106,20 @@ jobs:
105106 files : |
106107 ./dist/${{ steps.whlfile.outputs.value }}
107108 - name : Release manylinux wheel
108- if : ${{ matrix.os == 'ubuntu-18 .04' && startsWith(github.ref, 'refs/tags/') }}
109+ if : ${{ matrix.os == 'ubuntu-20 .04' && startsWith(github.ref, 'refs/tags/') }}
109110 uses : softprops/action-gh-release@v1
110111 with :
111112 files : |
112113 ./dist/wheelhouse/${{ steps.manylinuxwhlfile.outputs.value }}
113114 - name : Downloading whl files
114- if : ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-18 .04' && matrix.python-version == '3.10' }}
115+ if : ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-20 .04' && matrix.python-version == '3.10' }}
115116 working-directory : dist
116117 run : |
117118 rm *.whl
118119 rm -r wheelhouse
119120 python ../scripts/download.py ${{ env.VERSION }}
120121 - name : Publish a Python distribution to PyPI
121- if : ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-18 .04' && matrix.python-version == '3.10' }}
122+ if : ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-20 .04' && matrix.python-version == '3.10' }}
122123 uses : pypa/gh-action-pypi-publish@release/v1
123124 with :
124125 user : __token__
0 commit comments