From 58cf73345fda0ab9cf53e847aff32175ae3c1524 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 | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ab96f2..1ee64a5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,3 +38,42 @@ jobs: curl -Os https://uploader.codecov.io/latest/linux/codecov chmod +x codecov ./codecov + + #tmate: + + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # python-version: ["3.10"] + + # steps: + # - uses: actions/checkout@v4 + # - name: Setup tmate session + # uses: mxschmitt/action-tmate@v3 + + test-pocl: + + runs-on: ubuntu-24.04 + 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,pyopencl + - name: Test with pytest + run: | + pdm run py.test --cov=grunnur --cov-report=xml tests