diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4228e8..67841bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,14 @@ name: Build run-name: Build by ${{ github.actor }} -on: [push] +on: + pull_request: + branches: + - main + push: + branches: + - main + workflow_dispatch: + jobs: build: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index a67f866..ed933e1 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -1,4 +1,5 @@ name: Documentation + on: push: branches: @@ -33,26 +34,22 @@ jobs: with: miniconda-version: "latest" channels: conda-forge, defaults + auto-activate-base: true + activate-environment: "" - name: Install DIALS environment and more run: | conda install -n base conda-libmamba-solver conda config --set solver libmamba - conda install -c conda-forge -y dials + conda install -n base -c conda-forge -y dials conda info conda list - python -m pip install --upgrade pip - pip install -e ".[docs]" + $CONDA/bin/pip install -e ".[docs]" cd docs conda list + export SPHINXBUILD="$CONDA/bin/sphinx-build" make clean make html - # - name: Install pip dependencies - # run: | - - # - name: Build documentation - # run: | - - name: Commit documentation changes to gh-pages run: | diff --git a/.github/workflows/dev_build.yml b/.github/workflows/dev_build.yml index e65616b..4f8b1bf 100644 --- a/.github/workflows/dev_build.yml +++ b/.github/workflows/dev_build.yml @@ -1,6 +1,14 @@ name: Build run-name: Build by ${{ github.actor }} -on: [push] +on: + pull_request: + branches: + - main + push: + branches: + - main + workflow_dispatch: + jobs: build: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 475c80d..f569c59 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,6 +1,14 @@ name: Format run-name: Code formatting by ${{ github.actor }} -on: [push] +on: + pull_request: + branches: + - main + push: + branches: + - main + workflow_dispatch: + jobs: format: runs-on: ${{ matrix.os }}