Skip to content

fix CI

fix CI #24

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
conda-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
- name: Build
shell: bash -l {0}
run: |
whoami
ls -laF ~
ssh-keygen -t rsa -f ~/.ssh/id_rsa -C "[email protected]"
ssh-copy-id localhost
conda install -y openturns joblib ipyparallel pathos dask asyncssh numpy pytest sphinx numpydoc flake8
python setup.py install
pytest -s
make html -C doc BUILDDIR=~/.local/share/otwrapy/doc
- name: Upload
if: ${{ github.ref == 'refs/heads/master' }}
run: |
git clone --depth 1 https://${{ secrets.GH_TOKEN }}@github.com/openturns/openturns.github.io.git /tmp/io
mkdir -p /tmp/io/otwrapy/master
cp -r ~/.local/share/otwrapy/doc/html/* /tmp/io/otwrapy/master
cd /tmp/io
touch .nojekyll
git config user.email "[email protected]"
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 master > /dev/null 2>&1
conda-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
- name: Build
run: |
conda install -y openturns joblib ipyparallel pathos dask asyncssh numpy pytest
pytest -s