Skip to content
Merged
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] # Specify the Python versions you want to test against
python-version: ['3.9', '3.10', '3.11', '3.12'] # Specify the Python versions you want to test against
os: [ubuntu-latest, windows-latest]
name: Python ${{ matrix.python-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -24,9 +24,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyNFFT3
pip install numpy
pip install scipy
pip install pyNFFT3
- name: Run tests
run: |
python -m tests.run_tests
29 changes: 29 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: documentation

on: [push, pull_request, workflow_dispatch]

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser
- name: Sphinx build
run: |
cd docs
sphinx-apidoc -o ./source ../src -f
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
force_orphan: true
47 changes: 21 additions & 26 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
name: Format

on:
push:
branches: [main]
tags: [v*]
pull_request:

name: Format Python Code
on: push
jobs:
format:
name: "Format Check"
python-code-format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install black
python-version: "3.12"
architecture: "x64"
- name: Display Python version
run: python --version
- name: Install packages
run: pip install black isort
- name: Formatter
run: |
python -m pip install --upgrade pip
pip install black
- name: Format code with black
run: |
black . --check
- name: Suggest formatting changes
uses: reviewdog/action-suggester@v1
if: github.event_name == 'pull_request'
black .
isort .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
tool_name: black
fail_on_error: true
commit-message: Auto code format
title: Fixes by format action
body: This is an auto-generated PR with fixes.
labels: automated pr
branch: python-code-format-patches
24 changes: 0 additions & 24 deletions .github/workflows/sphinx.yml

This file was deleted.

4 changes: 0 additions & 4 deletions docs/requirements.txt

This file was deleted.

19 changes: 8 additions & 11 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,22 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'GroupedTransform'
copyright = '2025, Felix'
author = 'Felix'
release = '29.07.2025'
project = "GroupedTransform"
copyright = "2025, Felix"
author = "Felix"
release = "29.07.2025"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
'sphinx.ext.mathjax'
]
extensions = ["sphinx.ext.mathjax"]

templates_path = ['_templates']
templates_path = ["_templates"]
exclude_patterns = []



# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'alabaster'
html_static_path = ['_static']
html_theme = "alabaster"
html_static_path = ["_static"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ maintainers = [
]
description = "Python implementation of Grouped Transforms"
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"pyNFFT3>=0.2.2",
"numpy>=2.0.0",
Expand Down
Loading
Loading