Skip to content

Update fairlens dependencies #2

Update fairlens dependencies

Update fairlens dependencies #2

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
checks:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
name: Check Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install numpy
run: python -m pip install numpy
- name: Install
run: python -m pip install -e .[test]
- name: Test
run: python -m pytest
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install
run: python -m pip install -e .[doc]
- name: Build docs
run: |
cd docs
make html
- name: Upload docs artifact
uses: actions/upload-artifact@v2
with:
name: Documentation
path: docs/_build/html/*