Skip to content

Bump actions/checkout to v4 #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/book_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
jobs:
run-tests:
uses: ./.github/workflows/test_stable.yml

build-book:
uses: ./.github/workflows/book_stable.yml

Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/test_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)"
Expand Down Expand Up @@ -78,4 +77,4 @@ jobs:
name: DFG2D-3
path: chapter2/figures
retention-days: 2
if-no-files-found: error
if-no-files-found: error