update readme doc and bump version #117
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, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: test | |
steps: | |
- name: install openblas | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libblas-dev liblapack-dev | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
cache: "pip" | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --no-cache-dir -r requirements.txt | |
- name: run tests | |
run: | | |
pip install pytest-xdist pytest-cov | |
export RENO_NUM_THREADS=1 | |
pytest -n 4 --durations=0 --cov=renormalizer renormalizer | |
- name: run optional tests | |
run: | | |
pip install primme==3.2.* pyscf==2.4.0 | |
pytest --durations=0 renormalizer/mps/tests/test_gs.py::test_multistate --cov=renormalizer --cov-append | |
pytest --durations=0 renormalizer/mps/tests/test_gs.py::test_pyscf_solver --cov=renormalizer --cov-append | |
- name: run examples | |
run: | | |
cd example; bash run.sh | |
cd .. | |
- name: install pandoc | |
run: | |
sudo apt-get install pandoc | |
- name: test build doc | |
run: | | |
cd doc | |
make html | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |