diff options
author | umarcor <unai.martinezcorral@ehu.eus> | 2021-07-03 14:19:40 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-07-18 23:53:09 +0200 |
commit | be7d5128fca9a5317eb6f7bb52fa4ae4d0f2161a (patch) | |
tree | 16683b149d6c895903c8fb5c805feec98e39f975 | |
parent | ec54636a6cc7ae0eeb7a7e1353fa973f3e19cab6 (diff) | |
download | ghdl-be7d5128fca9a5317eb6f7bb52fa4ae4d0f2161a.tar.gz ghdl-be7d5128fca9a5317eb6f7bb52fa4ae4d0f2161a.tar.bz2 ghdl-be7d5128fca9a5317eb6f7bb52fa4ae4d0f2161a.zip |
ci: add CPython pyGHDL test with standalone zipfile
-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 # |