Skip to content

update requirements for building docs #33

update requirements for building docs

update requirements for building docs #33

Workflow file for this run

#
#
# ci test
#
#
# author zhy
#
name: CI
#
#
on: [push, pull_request]
jobs:
linux-build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: openmpi
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
macos-build:
runs-on: macos-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and Test
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
export BUILD_LIB=0; python -m pip install -e .
pip install pytest pytest-cov
pytest --cov
- name: Upload to codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
tests: # To be finalized
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install package
run: |
python -m pip install -e .
- name: Test Examples
timeout-minutes: 10
run: |
pip install pytest pytest-cov
pytest --cov