Skip to content

Update Python version used in docs workflow #314

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 3 commits into from
Jul 8, 2025
Merged
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
26 changes: 19 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,38 @@
name: Docs

on:
pull_request:
branches:
- main
paths:
- .github/workflows/docs.yml
- pyproject.toml
- s2fft/**
- docs/**
- notebooks/**
push:
branches:
- main


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

steps:
- name: Checkout Source
uses: actions/checkout@v4.2.2

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: 3.x
cache: pip
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: |
Expand All @@ -33,7 +45,7 @@ jobs:
cd docs && make html

- name: Deploy
if: github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
branch: gh-pages # The branch the action should deploy to.
Expand Down
Loading