Skip to content

Commit 0af31b0

Browse files
authored
Update GitHub actions (#861)
* updated versions * documentation * documentation * Sphinx 8.1
1 parent 94ccdda commit 0af31b0

7 files changed

+74
-49
lines changed

.github/workflows/build-python-wheels.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ jobs:
2222
# see: https://github.com/pypa/setuptools_scm/issues/480
2323
fetch-depth: 0
2424

25+
- name: Set up Python 3.12
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.12
29+
2530
- name: Build wheels
26-
uses: pypa/cibuildwheel@v2.19.1
31+
uses: pypa/cibuildwheel@v2.22
2732

2833
- name: Upload wheels
2934
uses: actions/upload-artifact@v4

.github/workflows/docs.yml

-39
This file was deleted.

.github/workflows/documentation.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy static content to Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["master"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
# Single deploy job since we're just deploying
25+
deploy:
26+
environment:
27+
name: github-pages
28+
url: ${{ steps.deployment.outputs.page_url }}
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
with:
34+
# Necessary to fetch tags and allow setuptools_scm
35+
# see: https://github.com/pypa/setuptools_scm/issues/480
36+
fetch-depth: 0
37+
38+
- name: Set up Python
39+
uses: actions/setup-python@v5
40+
with:
41+
python-version: 3.12
42+
cache: pip
43+
44+
- name: Build and install at
45+
run: python -m pip install ".[plot, doc]"
46+
47+
- name: Compile documentation
48+
run: make html
49+
working-directory: docs
50+
51+
- name: Upload artifact
52+
uses: actions/upload-pages-artifact@v3
53+
with:
54+
path: 'docs/_build/html'
55+
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

.github/workflows/matlab-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
- name: Set up python
3030
uses: actions/setup-python@v5
3131
with:
32-
python-version: '3.10'
32+
python-version: '3.11'
3333
cache: pip
3434

3535
- name: Set up MATLAB
3636
uses: matlab-actions/setup-matlab@v2
3737
with:
38-
release: R2023a
38+
release: R2024a
3939

4040
- name: Atmexall
4141
uses: matlab-actions/run-command@v2

.github/workflows/python-tests.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ name: Build Python extension and run tests
66

77
on:
88
push:
9-
pull_request:
109

1110
jobs:
1211
build_and_run_tests:
@@ -16,7 +15,7 @@ jobs:
1615

1716
strategy:
1817
matrix:
19-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
18+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
2019
os: [macos-latest, ubuntu-latest, windows-latest]
2120
exclude:
2221
- os: windows-latest

.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-20.04
1111
tools:
12-
python: "3.9"
12+
python: "3.10"
1313
# You can also specify other tool versions:
1414
# nodejs: "16"
1515
# rust: "1.55"

pyproject.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ classifiers = [
2828
"Programming Language :: Python :: 3.10",
2929
"Programming Language :: Python :: 3.11",
3030
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: 3.13",
3132
"Intended Audience :: Science/Research",
3233
"License :: OSI Approved :: Apache Software License",
3334
"Operating System :: MacOS",
@@ -52,7 +53,7 @@ ChangeLog = "https://github.com/atcollab/at/releases"
5253
mpi = ["mpi4py"]
5354
plot = ["matplotlib"]
5455
dev = ["pytest >= 2.9", "pytest-cov", "flake8"]
55-
doc = ["Sphinx ~= 7.2", "myst-parser", "myst-nb", "pydata-sphinx-theme ~= 0.14",
56+
doc = ["Sphinx ~= 8.1", "myst-parser", "myst-nb", "pydata-sphinx-theme",
5657
"sphinx_design", "sphinx-copybutton"]
5758

5859
[tool.setuptools]
@@ -68,9 +69,10 @@ machine_data = ["*.m", "*.mat"]
6869

6970
[tool.cibuildwheel]
7071
# Pypy does not have Scipy so we cannot support it.
71-
build = ["cp3{7,8,9,10,11,12}*"]
72-
# Skip 32-bit builds starting with python 3.12
73-
skip = ["cp312-win32", "cp312-*_i686"]
72+
build = ["cp3{7,8,9,10,11,12,13}*"]
73+
# build = ["cp312-*"] # Only cp312 for test
74+
# Skip 32-bit builds
75+
skip = ["*-win32", "*_i686"]
7476
build-verbosity = "1"
7577
# "build" frontend fails on windows
7678
# build-frontend = "build"

0 commit comments

Comments
 (0)