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 1ad4111
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,pyopencl
- name: Test with pytest
run: |
pdm run py.test --cov=grunnur --cov-report=xml tests

0 comments on commit 1ad4111

Please sign in to comment.