secret data #10
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: Sanity | |
on: [push] | |
jobs: | |
# | |
SanityOnMulti: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ['3.10', '3.11'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: s-weigand/setup-conda@v1 | |
with: | |
conda-channels: conda-forge | |
python-version: '3.11' | |
- run: python3 -m venv .venv | |
- run: .venv/bin/python -m pip install pycodestyle pytest nbmake | |
- run: .venv/bin/python ./setup.py bdist_wheel | |
- run: .venv/bin/python -m pip install ./dist/*.whl | |
- run: .venv/bin/python ./setup.py test -a "test_multi.py" | |
# needs to be updated to include Windows | |
# SanityOnWindows: | |
# # PB step 1 debug | |
# runs-on: ${{ matrix.os }} | |
# strategy: | |
# matrix: | |
# os: [windows-latest] | |
# python-version: ['3.10', '3.11'] | |
# steps: | |
# - uses: actions/checkout@v3 | |
# with: | |
# submodules: recursive | |
# - uses: s-weigand/setup-conda@v1 | |
# with: | |
# conda-channels: conda-forge | |
# python-version: '3.11' | |
# - run: python3 -m venv .venv | |
# - run: .venv\bin\python -m pip install pycodestyle pytest nbmake | |
# - run: .venv\bin\python ./setup.py install | |
# - run: .venv\bin\python ./setup.py test -a "test_multi.py" | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: s-weigand/setup-conda@v1 | |
with: | |
conda-channels: conda-forge | |
python-version: '3.11' | |
- run: python3 -m venv .venv | |
- run: .venv/bin/python -m pip install wheel | |
- run: .venv/bin/python -m pip install pycodestyle pytest | |
- run: .venv/bin/python setup.py lint | |
Sphinx: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- uses: s-weigand/setup-conda@v1 | |
with: | |
conda-channels: conda-forge | |
python-version: '3.10' | |
- run: python3 -m venv .venv | |
- run: .venv/bin/python -m pip install wheel | |
- run: .venv/bin/python setup.py bdist_wheel | |
- run: .venv/bin/python -m pip install ./dist/*.whl | |
- run: .venv/bin/python -m pip install sphinx piccolo_theme | |
- run: .venv/bin/python setup.py apidoc | |
- run: .venv/bin/python setup.py build_sphinx -W | |
- name: Publish Docs to Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: build/sphinx/html | |
# Fair-software: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: fair-software/howfairis-github-action@0.2.1 | |
# name: Measure compliance with fair-software.eu recommendations | |
# env: | |
# PYCHARM_HOSTED: "Trick colorama into displaying colored output" | |
# with: | |
# MY_REPO_URL: "https://github.com/${{ github.repository }}" | |
# Markdown: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@main | |
# - uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
# with: | |
# config-file: '.github/workflows/mlc-config.json' |