diff --git a/.github/workflows/book_stable.yml b/.github/workflows/book_stable.yml index 6c3a50fb..344ddac3 100644 --- a/.github/workflows/book_stable.yml +++ b/.github/workflows/book_stable.yml @@ -16,27 +16,24 @@ jobs: build-book: runs-on: ubuntu-latest container: ghcr.io/fenics/dolfinx/lab:v0.6.0-r1 - + env: - PYVISTA_TRAME_SERVER_PROXY_PREFIX: '/proxy/' + PYVISTA_TRAME_SERVER_PROXY_PREFIX: "/proxy/" PYVISTA_TRAME_SERVER_PROXY_ENABLED: "True" PYVISTA_OFF_SCREEN: false PYVISTA_JUPYTER_BACKEND: "panel" steps: + - uses: actions/checkout@v4 - - uses: actions/checkout@v3 - - name: Install common packages uses: ./.github/actions/install-dependencies - name: Install book deps - run: - python3 -m pip install -r docker/requirements.txt + run: python3 -m pip install -r docker/requirements.txt - name: Build the book - run: - jupyter-book build . -W + run: jupyter-book build . -W - uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dee6a8ca..bf1d5bdd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,7 +28,7 @@ env: jobs: run-tests: uses: ./.github/workflows/test_stable.yml - + build-book: uses: ./.github/workflows/book_stable.yml @@ -38,14 +38,14 @@ jobs: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - + steps: - name: Checkout - uses: actions/checkout@v3 - + uses: actions/checkout@v4 + - name: Setup Pages uses: actions/configure-pages@v2 - + - name: Download docs artifact uses: actions/download-artifact@v3 with: diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index d8abf4cf..d7113459 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.github/workflows/test_nightly.yml b/.github/workflows/test_nightly.yml index 767c20f2..43293eff 100644 --- a/.github/workflows/test_nightly.yml +++ b/.github/workflows/test_nightly.yml @@ -24,27 +24,25 @@ jobs: PYVISTA_OFF_SCREEN: true DISPLAY: ":99.0" PYVISTA_JUPYTER_BACKEND: panel - + # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checkout release branch to work on schedule - name: Checkout release branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: ${{ github.event_name == 'schedule' }} with: ref: release - - name: Use current branch - uses: actions/checkout@v3 + - name: Use current branch + uses: actions/checkout@v4 if: ${{ github.event_name != 'schedule' }} - name: Special handling of some installation uses: ./.github/actions/install-dependencies - name: Install requirements - run: - python3 -m pip install --no-cache-dir -r docker/requirements.txt --upgrade - + run: python3 -m pip install --no-cache-dir -r docker/requirements.txt --upgrade - name: Test complex notebooks in parallel run: | @@ -55,7 +53,7 @@ jobs: cd chapter1 python3 complex_mode.py mpirun -n 2 python3 complex_mode.py - + - name: Test real notebooks in parallel run: | cd chapter1 @@ -85,10 +83,8 @@ jobs: mpirun -n 2 python3 newton-solver.py - name: Test building the book - run: - PYVISTA_OFF_SCREEN=false jupyter-book build -W . + run: PYVISTA_OFF_SCREEN=false jupyter-book build -W . - - uses: actions/upload-artifact@v3 with: name: webpage diff --git a/.github/workflows/test_stable.yml b/.github/workflows/test_stable.yml index 465102dd..76f413e9 100644 --- a/.github/workflows/test_stable.yml +++ b/.github/workflows/test_stable.yml @@ -26,7 +26,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./.github/actions/install-dependencies @@ -44,8 +44,7 @@ jobs: cd chapter1 python3 complex_mode.py mpirun -n 2 python3 complex_mode.py - - + - name: Test notebooks in parallel run: | python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)" @@ -78,4 +77,4 @@ jobs: name: DFG2D-3 path: chapter2/figures retention-days: 2 - if-no-files-found: error \ No newline at end of file + if-no-files-found: error