Skip to content

Modified the installation command from archive #113

Modified the installation command from archive

Modified the installation command from archive #113

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
conda-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
- name: Build
shell: bash -l {0}
run: |
conda install -y openturns numpy pytest numpydoc sphinx sphinx-gallery pandoc tqdm "matplotlib<3.7"
conda install -c conda-forge sphinx_rtd_theme
python setup.py install
pytest
sudo apt install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra
make html -C doc
- name: Upload
if: ${{ github.ref == 'refs/heads/main' }}
run: |
git clone --depth 1 https://${{ secrets.GH_TOKEN }}@github.com/adutfoy/adutfoy.github.io.git /tmp/io
mkdir -p /tmp/io/sphinx/oteclm/main
cp -r doc/_build/html/* /tmp/io/sphinx/oteclm/main
cd /tmp/io
touch .nojekyll
git config user.email "anne.dutfoy@m4x.org"
git config user.name "GitHub Actions"
git add -A .
if test `git diff HEAD | wc -c` -eq 0; then exit 0; fi
git commit -a -m "GitHub Actions build ${GITHUB_REPOSITORY} ${GITHUB_RUN_ID}"
git push --quiet origin main > /dev/null 2>&1