Skip to content

Commit 4f72ec1

Browse files
authored
Merge pull request #1 from passscoed/main
Fixed Github-Workflows
2 parents 595ce5c + 70f3ef5 commit 4f72ec1

24 files changed

Lines changed: 1890 additions & 588 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
test:
1111
strategy:
1212
matrix:
13-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] # Specify the Python versions you want to test against
13+
python-version: ['3.9', '3.10', '3.11', '3.12'] # Specify the Python versions you want to test against
1414
os: [ubuntu-latest, windows-latest]
1515
name: Python ${{ matrix.python-version }} - ${{ matrix.os }}
1616
runs-on: ${{ matrix.os }}
@@ -24,9 +24,9 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27+
pip install pyNFFT3
2728
pip install numpy
2829
pip install scipy
29-
pip install pyNFFT3
3030
- name: Run tests
3131
run: |
3232
python -m tests.run_tests
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: documentation
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
- name: Install dependencies
15+
run: |
16+
pip install sphinx sphinx_rtd_theme myst_parser
17+
- name: Sphinx build
18+
run: |
19+
cd docs
20+
sphinx-apidoc -o ./source ../src -f
21+
make html
22+
- name: Deploy to GitHub Pages
23+
uses: peaceiris/actions-gh-pages@v3
24+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
25+
with:
26+
publish_branch: gh-pages
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: docs/build/html
29+
force_orphan: true

.github/workflows/format.yml

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
1-
name: Format
2-
3-
on:
4-
push:
5-
branches: [main]
6-
tags: [v*]
7-
pull_request:
8-
1+
name: Format Python Code
2+
on: push
93
jobs:
10-
format:
11-
name: "Format Check"
4+
python-code-format:
125
runs-on: ubuntu-latest
136
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
16-
- name: Set up Python
17-
uses: actions/setup-python@v4
7+
- uses: actions/checkout@v2
8+
- uses: actions/setup-python@v4
189
with:
19-
python-version: '3.x'
20-
- name: Install black
10+
python-version: "3.12"
11+
architecture: "x64"
12+
- name: Display Python version
13+
run: python --version
14+
- name: Install packages
15+
run: pip install black isort
16+
- name: Formatter
2117
run: |
22-
python -m pip install --upgrade pip
23-
pip install black
24-
- name: Format code with black
25-
run: |
26-
black . --check
27-
- name: Suggest formatting changes
28-
uses: reviewdog/action-suggester@v1
29-
if: github.event_name == 'pull_request'
18+
black .
19+
isort .
20+
- name: Create Pull Request
21+
uses: peter-evans/create-pull-request@v3
3022
with:
31-
tool_name: black
32-
fail_on_error: true
23+
commit-message: Auto code format
24+
title: Fixes by format action
25+
body: This is an auto-generated PR with fixes.
26+
labels: automated pr
27+
branch: python-code-format-patches

.github/workflows/sphinx.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,22 @@
66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

9-
project = 'GroupedTransform'
10-
copyright = '2025, Felix'
11-
author = 'Felix'
12-
release = '29.07.2025'
9+
project = "GroupedTransform"
10+
copyright = "2025, Felix"
11+
author = "Felix"
12+
release = "29.07.2025"
1313

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

17-
extensions = [
18-
'sphinx.ext.mathjax'
19-
]
17+
extensions = ["sphinx.ext.mathjax"]
2018

21-
templates_path = ['_templates']
19+
templates_path = ["_templates"]
2220
exclude_patterns = []
2321

2422

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

29-
html_theme = 'alabaster'
30-
html_static_path = ['_static']
26+
html_theme = "alabaster"
27+
html_static_path = ["_static"]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ maintainers = [
1313
]
1414
description = "Python implementation of Grouped Transforms"
1515
readme = "README.md"
16-
requires-python = ">=3.8"
16+
requires-python = ">=3.9"
1717
dependencies = [
1818
"pyNFFT3>=0.2.2",
1919
"numpy>=2.0.0",

0 commit comments

Comments
 (0)