Skip to content

Commit

Permalink
ci: fix sphinx conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
js2264 committed Jul 31, 2024
1 parent 8cec26d commit c0bb913
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
python-version: [ 3.8, 3.9, 3.10, 3.11, 3.12 ]
include:
- os: ubuntu-latest
python-version: "3.12"
python-version: 3.12
# - os: windows-latest
# python-version: "3.12"
# python-version: 3.12
- os: macos-latest
python-version: "3.12"
python-version: 3.12

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -48,15 +48,15 @@ jobs:
pytest
- name: Buid Sphinx doc on ${{ matrix.os }}
if: runner.os == 'Linux' && ${{ github.event_name == 'push' && github.ref == 'refs/heads/devel' }} && ${{ matrix.python-version == '3.12'}}
if: runner.os == 'Linux' && matrix.python-version == 3.12 && ${{ github.event_name == 'push' && github.ref == 'refs/heads/devel' }}
run: |
sudo apt-get update && sudo apt-get -y install make
pip install -e .[dev,docs]
make -C docs html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: runner.os == 'Linux' && ${{ github.event_name == 'push' && github.ref == 'refs/heads/devel' }} && ${{ matrix.python-version == '3.12'}}
if: runner.os == 'Linux' && matrix.python-version == 3.12 && ${{ github.event_name == 'push' && github.ref == 'refs/heads/devel' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit c0bb913

Please sign in to comment.