Skip to content

Commit c335b7f

Browse files
committed
py14 + ruff
1 parent faa9f9f commit c335b7f

File tree

5 files changed

+33
-40
lines changed

5 files changed

+33
-40
lines changed

.github/workflows/build_wheels.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828

2929
- run: gfortran --version
3030

31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v5
3232
with:
3333
submodules: recursive
3434

35-
- uses: actions/setup-python@v5
35+
- uses: actions/setup-python@v6
3636
with:
3737
python-version: "3.13"
3838

@@ -81,12 +81,12 @@ jobs:
8181
id-token: write
8282

8383
steps:
84-
- uses: actions/checkout@v4
84+
- uses: actions/checkout@v5
8585
with:
8686
submodules: recursive
8787

8888
- name: Set up Python
89-
uses: actions/setup-python@v5
89+
uses: actions/setup-python@v6
9090
with:
9191
python-version: "3.x"
9292
cache: pip
@@ -139,18 +139,10 @@ jobs:
139139
runs-on: ${{ matrix.os }}
140140
strategy:
141141
matrix:
142-
os:
143-
[
144-
macos-12,
145-
macos-13,
146-
macos-14,
147-
ubuntu-20.04,
148-
ubuntu-24.04-arm,
149-
windows-latest,
150-
]
142+
os: [macos-14, ubuntu-20.04, ubuntu-24.04-arm, windows-latest]
151143

152144
steps:
153-
- uses: actions/setup-python@v5
145+
- uses: actions/setup-python@v6
154146

155147
- name: install
156148
run: python -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ camb

.github/workflows/test_fortran.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Test Fortran
33
on:
44
push:
55
branches-ignore:
6-
- 'test**'
6+
- "test**"
77
pull_request:
88

99
jobs:
@@ -12,26 +12,26 @@ jobs:
1212
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'cmbant/camb')
1313

1414
steps:
15-
- uses: actions/checkout@v4
16-
with:
17-
submodules: recursive
18-
fetch-depth: 0
15+
- uses: actions/checkout@v5
16+
with:
17+
submodules: recursive
18+
fetch-depth: 0
1919

20-
- name: Set up Python
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: "3.x"
20+
- name: Set up Python
21+
uses: actions/setup-python@v6
22+
with:
23+
python-version: "3.x"
2424

25-
- name: Install python requirements
26-
run: python -m pip install numpy
25+
- name: Install python requirements
26+
run: python -m pip install numpy
2727

28-
- name: Run Build and Test Script
29-
run: bash fortran/tests/run_tests.sh
28+
- name: Run Build and Test Script
29+
run: bash fortran/tests/run_tests.sh
3030

31-
- name: Upload Test Files on Failure
32-
if: failure()
33-
uses: actions/upload-artifact@v4
34-
with:
35-
name: test-output-${{ github.sha }}
36-
path: fortran/testfiles/
37-
if-no-files-found: warn
31+
- name: Upload Test Files on Failure
32+
if: failure()
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: test-output-${{ github.sha }}
36+
path: fortran/testfiles/
37+
if-no-files-found: warn

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ jobs:
1313
- name: "Latest Python 3.10"
1414
os: ubuntu-latest
1515
python-version: "3.10"
16-
- name: "Windows Python 3.13"
16+
- name: "Windows Python 3.14"
1717
os: windows-latest
18-
python-version: "3.13"
18+
python-version: "3.14"
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222
with:
2323
submodules: recursive
2424
fetch-depth: 0
2525

2626
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@v6
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030
allow-prereleases: true

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
args: [--py310-plus]
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.12.0
21+
rev: v0.14.0
2222
hooks:
2323
- id: ruff-check
2424
args: [--fix, --exit-non-zero-on-fix]

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ classifiers = [
2323
"Programming Language :: Python :: 3.10",
2424
"Programming Language :: Python :: 3.11",
2525
"Programming Language :: Python :: 3.12",
26-
"Programming Language :: Python :: 3.13"
26+
"Programming Language :: Python :: 3.13",
27+
"Programming Language :: Python :: 3.14",
2728
]
2829
dependencies = [
2930
"numpy>=1.22", "scipy>=1.0", "sympy>=1.0", "packaging>=24.2"

0 commit comments

Comments
 (0)