Skip to content

Commit

Permalink
update the github action, fix sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
ndem0 committed Oct 24, 2024
1 parent a746249 commit a2e2ad3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 29 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy_after_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
matrix: ${{ steps.setmatrix.outputs.matrix }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5
- name: Set Dynamic Matrix
id: setmatrix
run: |
Expand Down Expand Up @@ -43,9 +43,9 @@ jobs:
matrix: ${{ fromJson(needs.prepare_matrix.outputs.matrix) }}

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/deploy_after_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
matrix: ${{ steps.setmatrix.outputs.matrix }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5
- name: Set Dynamic Matrix
id: setmatrix
run: |
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -55,9 +55,9 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.prepare_matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install build
Expand All @@ -79,17 +79,21 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.prepare_matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- name: Create the new documentation
uses: ammaraskar/sphinx-action@master
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
pre-build-command: "python -m pip install -U pip .[docs]"
docs-folder: "docs/"
python-version: ${{ matrix.python-version }}
- name: Create the new documentation
run: |
python -m pip install --upgrade pip .[docs]
cd docs
make html
- name: Gather tutorials
run: |
sudo cp docs/source/_tutorials/* -v docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/export_tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
env:
TUTORIAL_TIMEOUT: 1200s
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/monthly-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{ secrets.NDEMO_PAT_TOKEN }}

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/testing_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
matrix_tutorial_test: ${{ steps.setmatrix.outputs.matrix2 }}

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5

- name: Set Dynamic Matrix
id: setmatrix
Expand All @@ -43,7 +43,7 @@ jobs:
black: ######################################################################################
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: Install black
run: |
pip install black[jupyter]==24.4.2
Expand All @@ -67,7 +67,7 @@ jobs:
sort_dependencies: ##########################################################################
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: Install isort
run: |
pip install isort
Expand All @@ -89,9 +89,9 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand All @@ -114,10 +114,10 @@ jobs:
TUTORIAL_TIMEOUT: 1200s

steps:
- uses: actions/checkout@v4.1.7
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5.1.1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down

0 comments on commit a2e2ad3

Please sign in to comment.