Skip to content

Test diffopt

Test diffopt #20

Workflow file for this run

name: Test diffopt
on:
workflow_dispatch: null
schedule:
# Runs "every Monday at noon UTC"
- cron: '0 12 * * 1'
push:
branches:
- main
pull_request: null
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test${{ matrix.python-version}}
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
- name: Install dependencies
shell: bash -l {0}
run: |
conda install -yq jax
conda install -yq pip pytest pytest-cov flake8
- name: Install package
shell: bash -l {0}
run: |
pip install -e .
- name: Run tests
shell: bash -l {0}
run: |
export PYTHONWARNINGS=error
pytest -v