Update all dependencies and rerun CI (#131) #187
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: ci | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: pip install --upgrade pip pip install .[numpy,jax,lint] | |
- name: Apply linter | |
run: make lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: pip install .[numpy,jax,test] | |
- name: Run tests | |
run: make test | |
example: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: pip install .[numpy,jax,example] | |
- name: Sync and execute notebooks | |
run: make example | |
doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: pip install .[numpy,jax,doc] | |
- name: Build the HTML docs | |
run: make doc |