aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-07-03 14:19:40 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-07-18 23:53:09 +0200
commitbe7d5128fca9a5317eb6f7bb52fa4ae4d0f2161a (patch)
tree16683b149d6c895903c8fb5c805feec98e39f975 /.github
parentec54636a6cc7ae0eeb7a7e1353fa973f3e19cab6 (diff)
downloadghdl-be7d5128fca9a5317eb6f7bb52fa4ae4d0f2161a.tar.gz
ghdl-be7d5128fca9a5317eb6f7bb52fa4ae4d0f2161a.tar.bz2
ghdl-be7d5128fca9a5317eb6f7bb52fa4ae4d0f2161a.zip
ci: add CPython pyGHDL test with standalone zipfile
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/Test.yml56
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
#