Skip to content

Commit

Permalink
Add tests with POCL
Browse files Browse the repository at this point in the history
  • Loading branch information
fjarri committed Jul 26, 2024
1 parent 8ad7204 commit 58cf733
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 58cf733

Please sign in to comment.