-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 978 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Tests
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.9]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install dependencies on Linux
run: |
python -m pip install --upgrade pip
conda install -c conda-forge pocl pyopencl pytest scipy pyyaml
python -c 'import pyopencl as cl'
pip install https://github.com/pypr/compyle/zipball/master
- name: PEP8 Action
uses: quentinguidee/pep8-action@v1
- name: Run tests
run: |
pytest