From 5b8d4f4ab825f8e151b3109fb3bbad6ea881d939 Mon Sep 17 00:00:00 2001 From: Bogdan Opanchuk Date: Fri, 26 Jul 2024 12:07:53 -0700 Subject: [PATCH] Add tests with POCL --- .github/workflows/tests.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ab96f2..cfd3572 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,3 +38,29 @@ jobs: curl -Os https://uploader.codecov.io/latest/linux/codecov chmod +x codecov ./codecov + + test-pocl: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10"] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install system dependencies + run: | + sudo apt-get install libpocl-dev + - name: Install PDM + run: curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 + - name: Install dependencies + run: | + pdm sync -G tests + - name: Test with pytest + run: | + pdm run py.test --cov=grunnur --cov-report=xml tests