Update CHANGELOG.rst #9
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: Build Documentation | |
on: | |
push: | |
branches: | |
- main | |
release: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: build | |
environment-file: ./environment.yml | |
python-version: 3 | |
auto-update-conda: true | |
- name: install requirements | |
run: | | |
conda config --set always_yes yes --set changeps1 no | |
conda config --add channels conda-forge | |
conda create -n build python=3.12 | |
conda activate build | |
conda install --file requirements/build.txt | |
conda install --file requirements/run.txt | |
conda install --file requirements/test.txt | |
conda install --file requirements/docs.txt | |
python -m pip install . --no-deps | |
- name: build documents | |
run: make -C doc html | |
- name: Run tests and upload coverage | |
shell: bash -l {0} | |
run: | | |
conda activate build | |
coverage run -m pytest -vv -s | |
coverage report -m | |
codecov | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./doc/build/html |