From dd531a14b62bcebe4c8e1a83a1c8e493943c0856 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Thu, 21 Mar 2024 10:02:59 +0100 Subject: [PATCH] CI: Update build.yml --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3564571..a7c0190 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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