Skip to content

Commit a2e2ad3

Browse files
committed
update the github action, fix sphinx
1 parent a746249 commit a2e2ad3

File tree

5 files changed

+33
-29
lines changed

5 files changed

+33
-29
lines changed

.github/workflows/deploy_after_push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
matrix: ${{ steps.setmatrix.outputs.matrix }}
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Python
18-
uses: actions/setup-python@v5.1.1
18+
uses: actions/setup-python@v5
1919
- name: Set Dynamic Matrix
2020
id: setmatrix
2121
run: |
@@ -43,9 +43,9 @@ jobs:
4343
matrix: ${{ fromJson(needs.prepare_matrix.outputs.matrix) }}
4444

4545
steps:
46-
- uses: actions/checkout@v4.1.7
46+
- uses: actions/checkout@v4
4747
- name: Set up Python
48-
uses: actions/setup-python@v5.1.1
48+
uses: actions/setup-python@v5
4949
with:
5050
python-version: ${{ matrix.python-version }}
5151
cache: 'pip'

.github/workflows/deploy_after_tag.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
matrix: ${{ steps.setmatrix.outputs.matrix }}
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Python
18-
uses: actions/setup-python@v5.1.1
18+
uses: actions/setup-python@v5
1919
- name: Set Dynamic Matrix
2020
id: setmatrix
2121
run: |
@@ -44,7 +44,7 @@ jobs:
4444
permissions:
4545
contents: write
4646
steps:
47-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v4
4848
- uses: ncipollo/release-action@v1
4949
with:
5050
token: ${{ secrets.GITHUB_TOKEN }}
@@ -55,9 +55,9 @@ jobs:
5555
strategy:
5656
matrix: ${{ fromJson(needs.prepare_matrix.outputs.matrix) }}
5757
steps:
58-
- uses: actions/checkout@v4.1.7
58+
- uses: actions/checkout@v4
5959
- name: Set up Python
60-
uses: actions/setup-python@v5.1.1
60+
uses: actions/setup-python@v5
6161
with:
6262
python-version: ${{ matrix.python-version }}
6363
- name: Install build
@@ -79,17 +79,21 @@ jobs:
7979
strategy:
8080
matrix: ${{ fromJson(needs.prepare_matrix.outputs.matrix) }}
8181
steps:
82-
- uses: actions/checkout@v2
83-
- name: Create the new documentation
84-
uses: ammaraskar/sphinx-action@master
82+
- uses: actions/checkout@v4
83+
- name: Set up Python
84+
uses: actions/setup-python@v5
8585
with:
86-
pre-build-command: "python -m pip install -U pip .[docs]"
87-
docs-folder: "docs/"
86+
python-version: ${{ matrix.python-version }}
87+
- name: Create the new documentation
88+
run: |
89+
python -m pip install --upgrade pip .[docs]
90+
cd docs
91+
make html
8892
- name: Gather tutorials
8993
run: |
9094
sudo cp docs/source/_tutorials/* -v docs/build/html/
9195
- name: Deploy
92-
uses: peaceiris/actions-gh-pages@v3
96+
uses: peaceiris/actions-gh-pages@v4
9397
with:
9498
github_token: ${{ secrets.GITHUB_TOKEN }}
9599
publish_dir: ./docs/build/html

.github/workflows/export_tutorials.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
env:
1515
TUTORIAL_TIMEOUT: 1200s
1616
steps:
17-
- uses: actions/checkout@v4.1.7
17+
- uses: actions/checkout@v4
1818

1919
- name: Set up Python
20-
uses: actions/setup-python@v5.1.1
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: 3.8
2323

.github/workflows/monthly-tag.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [windows-latest, macos-latest, ubuntu-latest]
14-
python-version: ["3.7", "3.8", "3.9", "3.10"]
14+
python-version: ["3.8", "3.9", "3.10"]
1515

1616
steps:
17-
- uses: actions/checkout@v4.1.7
17+
- uses: actions/checkout@v4
1818

1919
- name: Set up Python
20-
uses: actions/setup-python@v5.1.1
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323

@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535
needs: test
3636
steps:
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
3838
with:
3939
token: ${{ secrets.NDEMO_PAT_TOKEN }}
4040

.github/workflows/testing_pr.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
matrix_tutorial_test: ${{ steps.setmatrix.outputs.matrix2 }}
1414

1515
steps:
16-
- uses: actions/checkout@v4.1.7
16+
- uses: actions/checkout@v4
1717

1818
- name: Set up Python
19-
uses: actions/setup-python@v5.1.1
19+
uses: actions/setup-python@v5
2020

2121
- name: Set Dynamic Matrix
2222
id: setmatrix
@@ -43,7 +43,7 @@ jobs:
4343
black: ######################################################################################
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v4.1.7
46+
- uses: actions/checkout@v4
4747
- name: Install black
4848
run: |
4949
pip install black[jupyter]==24.4.2
@@ -67,7 +67,7 @@ jobs:
6767
sort_dependencies: ##########################################################################
6868
runs-on: ubuntu-latest
6969
steps:
70-
- uses: actions/checkout@v4.1.7
70+
- uses: actions/checkout@v4
7171
- name: Install isort
7272
run: |
7373
pip install isort
@@ -89,9 +89,9 @@ jobs:
8989
fail-fast: false
9090

9191
steps:
92-
- uses: actions/checkout@v4.1.7
92+
- uses: actions/checkout@v4
9393
- name: Set up Python
94-
uses: actions/setup-python@v5.1.1
94+
uses: actions/setup-python@v5
9595
with:
9696
python-version: ${{ matrix.python-version }}
9797
cache: 'pip'
@@ -114,10 +114,10 @@ jobs:
114114
TUTORIAL_TIMEOUT: 1200s
115115

116116
steps:
117-
- uses: actions/checkout@v4.1.7
117+
- uses: actions/checkout@v4
118118

119119
- name: Set up Python
120-
uses: actions/setup-python@v5.1.1
120+
uses: actions/setup-python@v5
121121
with:
122122
python-version: ${{ matrix.python-version }}
123123
cache: 'pip'

0 commit comments

Comments
 (0)