Skip to content

Add install instructions for pye3d #392

Add install instructions for pye3d

Add install instructions for pye3d #392

Workflow file for this run

name: build
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
max-parallel: 3
matrix:
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements_dev.txt
- name: Lint with flake8
run: |
flake8 pupil_recording_interface tests --ignore=E203,W503,W504 --exclude=**/externals
- name: Install package
run: python setup.py install
- name: Test with pytest
run: |
pytest
pypi-publish:
runs-on: ubuntu-20.04
permissions:
id-token: write
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install build dependencies
run: pip install setuptools wheel
- name: Package
run: python setup.py sdist bdist_wheel
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
conda:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
- name: Check versions
run: |
conda --version
which python
- name: Create environment
run: |
conda install -y -c conda-forge mamba
mamba env create
- name: Install package
run: |
source activate pri
pip install --no-deps .
- name: Test with pytest
run: |
source activate pri
pytest
conda-build:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
- name: Check versions
run: |
conda --version
which python
- name: Set up build system
run: |
conda install -y -c conda-forge boa anaconda-client
conda config --set anaconda_upload no
- name: Run conda build
run: conda mambabuild build_tools/conda_recipe
- name: Upload to channel on tags
if: startsWith(github.ref, 'refs/tags/')
run: |
anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload -u vedb /usr/share/miniconda/conda-bld/noarch/pupil_recording_interface*.tar.bz2 --force
docs:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
- name: Check versions
run: |
conda --version
which python
- name: Create environment
run: |
conda install -y -c conda-forge mamba
mamba env create
- name: Install package
run: |
source activate pri
pip install --no-deps .
- name: Build Sphinx docs and run doctests
run: |
source activate pri
make -C docs/ html
make -C docs/ doctest
- name: Deploy docs on master
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
force_orphan: true
black:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Check black code style
run: |
pip install click==8.0.2 black==19.10b0
black --check .