Skip to content

deprecate from jax.config #16

deprecate from jax.config

deprecate from jax.config #16

Workflow file for this run

name: UnitTest
on:
push:
branches: [ main ]
paths:
- 'chirpgp/**'
- 'test/**'
- '.github/workflows/**'
pull_request:
branches: [ main ]
paths:
- 'chirpgp/**'
- 'test/**'
- '.github/workflows/**'
workflow_dispatch:
inputs:
name:
description: 'Workflow run name'
required: true
default: 'Manual unittest'
reason:
description: 'Reason'
required: true
default: 'Test modules'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8, 3.9, '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 dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install flake8
pip install -r requirements.txt
pip install jax[cpu]
python setup.py install
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Do the unit tests
run: |
pip install pytest
pytest test/
- name: Logging
run: |
echo "This is ${{ github.event.inputs.name }}!"
echo "Reason is ${{ github.event.inputs.reason }}!"