diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 139acba6..09c259b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,7 @@ on: pull_request: branches: - main + workflow_dispatch: jobs: build: diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 6fe24849..dc6da4eb 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,6 +9,7 @@ on: - main schedule: - cron: "0 7 * * 1" + workflow_dispatch: jobs: run-tests: @@ -25,5 +26,15 @@ jobs: name: Run flake8 on tests - run: flake8 _tools/ name: Run flake8 on tools - - run: GITHUB_TOKEN=${{ secrets.symfembot_token }} python3 -m pytest _test/ --has-fenicsx 1 + - run: | + TOKEN=${{ secrets.symfembot_token }} + if [ -n "${TOKEN}" ]; then + echo "token=${TOKEN}" >> ${GITHUB_OUTPUT} + else + echo "token=${{ github.token }}" >> ${GITHUB_OUTPUT} + fi + shell: bash + name: Determine which token to use when running tests + id: token + - run: GITHUB_TOKEN=${{ steps.token.outputs.token }} python3 -m pytest _test/ --has-fenicsx 1 name: Run tests diff --git a/documentation/index.md b/documentation/index.md index 0fa719ad..2bda9136 100644 --- a/documentation/index.md +++ b/documentation/index.md @@ -32,7 +32,7 @@ number of applications of FEniCS to problems in fluid mechanics, solid mechanics, electromagnetics, and geophysics. The book was published in 2012, and was based on the legacy FEniCS library, so the code examples in the book are out of date. However, the book still gives a good -description of the many of the concepts in FEniCSx. +description of many of the concepts in FEniCSx. The book is available as a [free ebook](http://launchpad.net/fenics-book/trunk/final/+download/fenics-book-2011-10-27-final.pdf),