Skip to content

New context followup (#35) #13

New context followup (#35)

New context followup (#35) #13

Workflow file for this run

name: Unix
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
python-version: [3.11]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Cache conda
uses: actions/cache@v2
# Increase this value to reset cache
env: {CACHE_NUMBER: 0}
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ matrix.python-version }}
- uses: conda-incubator/setup-miniconda@v2
name: Setup conda
with:
auto-update-conda: true
activate-environment: testing
auto-activate-base: false
channels: conda-forge,defaults
channel-priority: true
- shell: bash -eo pipefail -l {0}
name: Install dependencies
run: |
conda install --yes -c conda-forge pocl ocl-icd-system
pip install pytest pyflakes
python -m pip install .
- shell: bash -eo pipefail -l {0}
name: pyflakes
run: python -m pyflakes .
- shell: bash -eo pipefail -l {0}
name: physics tests
run: |
python -m pytest tests