Skip to content

Commit

Permalink
CI: Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller authored Mar 21, 2024
1 parent 99acbc0 commit dd531a1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: Build
on: [push, pull_request]
on:
push:
branches: [ master ]
pull_request:
jobs:
conda-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- 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 sphinx_rtd_theme pandoc flake8 "matplotlib<3.7"
conda install -y openturns numpy pytest numpydoc sphinx sphinx-gallery sphinx_rtd_theme pandoc flake8 matplotlib
flake8 --max-line-length=120
python setup.py install
pytest
Expand All @@ -20,7 +23,8 @@ jobs:
- name: Upload
if: ${{ github.ref == 'refs/heads/master' }}
run: |
git clone --depth 1 https://${{ secrets.GH_TOKEN }}@github.com/sofianehaddad/sofianehaddad.github.io.git /tmp/io
exit 0
git clone --depth 1 https://${{ secrets.GH_TOKEN }}@github.com/openturns/openturns.github.io.git /tmp/io
mkdir -p /tmp/io/sphinx/ottemplate/master
cp -r doc/_build/html/* /tmp/io/sphinx/ottemplate/master
cd /tmp/io
Expand Down

0 comments on commit dd531a1

Please sign in to comment.