From be7d5128fca9a5317eb6f7bb52fa4ae4d0f2161a Mon Sep 17 00:00:00 2001 From: umarcor Date: Sat, 3 Jul 2021 14:19:40 +0200 Subject: ci: add CPython pyGHDL test with standalone zipfile --- .github/workflows/Test.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 9a3b833b7..15572f46a 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -497,6 +497,62 @@ jobs: cd testsuite python3 -m pytest -vsrA pyunit +# +# Windows CPython pyGHDL Test with standalone zipfile +# + + win-cpython-standalone: + needs: win-standalone + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + include: [ + {icon: '๐ŸŸช', pkg: 'MINGW32-mcode', pyarch: x86 }, + #{icon: '๐ŸŸช', pkg: 'MINGW32-llvm', pyarch: x86 }, ! Not yet functional + {icon: '๐ŸŸฆ', pkg: 'MINGW64-mcode', pyarch: x64 }, #! simulation with mcode is not yet supported on win64 + #{icon: '๐ŸŸฆ', pkg: 'MINGW64-llvm', pyarch: x64 }, + ] + name: '${{ matrix.icon }} CPython Test ยท ${{ matrix.pkg }}' + defaults: + run: + shell: pwsh + steps: + + - name: 'โš™๏ธ git config' + run: git config --global core.autocrlf input + + - name: '๐Ÿงฐ Checkout' + uses: actions/checkout@v2 + + - name: '๐Ÿ“ฅ Download artifact: package' + uses: actions/download-artifact@v2 + with: + path: artifact + name: ${{ matrix.pkg }}-standalone + + - name: 'โš™๏ธ Extract package' + run: | + unzip artifact\${{ matrix.pkg }}-standalone.zip + mv '${{ matrix.pkg }}-standalone\' GHDL-standalone + + - name: '๐Ÿ Setup Python' + uses: actions/setup-python@v2 + with: + python-version: 3.8 + architecture: ${{ matrix.pyarch }} + + - name: '๐Ÿ Install Python dependencies' + run: | + pip3 install -r testsuite/requirements.txt + + - name: '๐Ÿšง Test package' + run: | + $env:GHDL_PREFIX = (pwd).Path + '\GHDL-standalone\lib\ghdl' + $env:PYTHONPATH = (pwd).Path + cd testsuite + python3 -m pytest -vsrA pyunit + # # Release # -- cgit v1.2.3