Update test.yml #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: chisel test | |
| on: | |
| pull_request: | |
| paths: | |
| - '**.scala' | |
| - '**.sbt' | |
| - Makefile | |
| push: | |
| paths: | |
| - '**.scala' | |
| - '**.sbt' | |
| - Makefile | |
| - .github/workflows/test.yml | |
| jobs: | |
| test: | |
| name: sbt testOnly on ubuntu | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| scala: [2.13.10] | |
| jvm: [adopt@1.8, adopt@1.11] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y z3 python3 python3-dev python3-pip | |
| - name: Install Python dependencies | |
| run: | | |
| pip3 install numpy | |
| - name: Setup ScalaPy | |
| run: | | |
| # Create symbolic link for Python library (similar to setup_scalapy.sh) | |
| sudo ln -sf /usr/lib/x86_64-linux-gnu/libpython3.10.so /usr/lib/x86_64-linux-gnu/libpython3.so | |
| - name: Setup Scala | |
| uses: olafurpg/setup-scala@v10 | |
| with: | |
| java-version: ${{ matrix.jvm }} | |
| - name: Test | |
| run: sbt ++${{ matrix.scala }} "testOnly -- -l RequiresVcs -l RequiresVerilator -DFORMAL=1" | |
| - name: Test X-ray compression pipeline | |
| run: sbt ++${{ matrix.scala }} "testOnly -z common.XRayCompressionPipelineSpec" | |
| - name: Test numpy reader | |
| run: sbt ++${{ matrix.scala }} "testOnly -z common.NumpyReaderScalaPySpec" |