diff options
-rw-r--r-- | .github/workflows/Test.yml | 56 |
1 files changed, 56 insertions, 0 deletions
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 @@ -498,6 +498,62 @@ jobs: 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 # |