Skip to content

Commit c9214c6

Browse files
authored
Bump actions/checkout to v4 (#141)
1 parent 475c714 commit c9214c6

5 files changed

Lines changed: 21 additions & 29 deletions

File tree

.github/workflows/book_stable.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,24 @@ jobs:
1616
build-book:
1717
runs-on: ubuntu-latest
1818
container: ghcr.io/fenics/dolfinx/lab:v0.6.0-r1
19-
19+
2020
env:
21-
PYVISTA_TRAME_SERVER_PROXY_PREFIX: '/proxy/'
21+
PYVISTA_TRAME_SERVER_PROXY_PREFIX: "/proxy/"
2222
PYVISTA_TRAME_SERVER_PROXY_ENABLED: "True"
2323
PYVISTA_OFF_SCREEN: false
2424
PYVISTA_JUPYTER_BACKEND: "panel"
2525

2626
steps:
27+
- uses: actions/checkout@v4
2728

28-
- uses: actions/checkout@v3
29-
3029
- name: Install common packages
3130
uses: ./.github/actions/install-dependencies
3231

3332
- name: Install book deps
34-
run:
35-
python3 -m pip install -r docker/requirements.txt
33+
run: python3 -m pip install -r docker/requirements.txt
3634

3735
- name: Build the book
38-
run:
39-
jupyter-book build . -W
36+
run: jupyter-book build . -W
4037

4138
- uses: actions/upload-artifact@v3
4239
with:

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ env:
2828
jobs:
2929
run-tests:
3030
uses: ./.github/workflows/test_stable.yml
31-
31+
3232
build-book:
3333
uses: ./.github/workflows/book_stable.yml
3434

@@ -38,14 +38,14 @@ jobs:
3838
environment:
3939
name: github-pages
4040
url: ${{ steps.deployment.outputs.page_url }}
41-
41+
4242
steps:
4343
- name: Checkout
44-
uses: actions/checkout@v3
45-
44+
uses: actions/checkout@v4
45+
4646
- name: Setup Pages
4747
uses: actions/configure-pages@v2
48-
48+
4949
- name: Download docs artifact
5050
uses: actions/download-artifact@v3
5151
with:

.github/workflows/publish_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
- name: Set up QEMU
2626
uses: docker/setup-qemu-action@v2

.github/workflows/test_nightly.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,25 @@ jobs:
2424
PYVISTA_OFF_SCREEN: true
2525
DISPLAY: ":99.0"
2626
PYVISTA_JUPYTER_BACKEND: panel
27-
27+
2828
# Steps represent a sequence of tasks that will be executed as part of the job
2929
steps:
3030
# Checkout release branch to work on schedule
3131
- name: Checkout release branch
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
if: ${{ github.event_name == 'schedule' }}
3434
with:
3535
ref: release
3636

37-
- name: Use current branch
38-
uses: actions/checkout@v3
37+
- name: Use current branch
38+
uses: actions/checkout@v4
3939
if: ${{ github.event_name != 'schedule' }}
4040

4141
- name: Special handling of some installation
4242
uses: ./.github/actions/install-dependencies
4343

4444
- name: Install requirements
45-
run:
46-
python3 -m pip install --no-cache-dir -r docker/requirements.txt --upgrade
47-
45+
run: python3 -m pip install --no-cache-dir -r docker/requirements.txt --upgrade
4846

4947
- name: Test complex notebooks in parallel
5048
run: |
@@ -55,7 +53,7 @@ jobs:
5553
cd chapter1
5654
python3 complex_mode.py
5755
mpirun -n 2 python3 complex_mode.py
58-
56+
5957
- name: Test real notebooks in parallel
6058
run: |
6159
cd chapter1
@@ -85,10 +83,8 @@ jobs:
8583
mpirun -n 2 python3 newton-solver.py
8684
8785
- name: Test building the book
88-
run:
89-
PYVISTA_OFF_SCREEN=false jupyter-book build -W .
86+
run: PYVISTA_OFF_SCREEN=false jupyter-book build -W .
9087

91-
9288
- uses: actions/upload-artifact@v3
9389
with:
9490
name: webpage

.github/workflows/test_stable.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
# Steps represent a sequence of tasks that will be executed as part of the job
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030

3131
- uses: ./.github/actions/install-dependencies
3232

@@ -44,8 +44,7 @@ jobs:
4444
cd chapter1
4545
python3 complex_mode.py
4646
mpirun -n 2 python3 complex_mode.py
47-
48-
47+
4948
- name: Test notebooks in parallel
5049
run: |
5150
python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)"
@@ -78,4 +77,4 @@ jobs:
7877
name: DFG2D-3
7978
path: chapter2/figures
8079
retention-days: 2
81-
if-no-files-found: error
80+
if-no-files-found: error

0 commit comments

Comments
 (0)