Skip to content

Commit 8466258

Browse files
committed
Merge branch 'main' into mmg/pytorch-wrapper
2 parents bd49bf7 + 1d5fa15 commit 8466258

File tree

24 files changed

+206
-714
lines changed

24 files changed

+206
-714
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/build.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,14 @@ jobs:
5050
os: [ubuntu-latest, macos-latest]
5151

5252
steps:
53-
- uses: actions/checkout@v4
54-
53+
- uses: actions/[email protected]
54+
with:
55+
fetch-depth: 0
56+
fetch-tags: true
5557
- name: Build wheels
56-
uses: pypa/[email protected]
57-
58+
uses: pypa/[email protected]
59+
env:
60+
CIBW_SKIP: pp*-macosx_arm64
5861
- uses: actions/upload-artifact@v4
5962
with:
6063
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
@@ -64,23 +67,26 @@ jobs:
6467
name: Build source distribution
6568
runs-on: ubuntu-latest
6669
steps:
67-
- uses: actions/checkout@v4
68-
70+
- uses: actions/[email protected]
71+
with:
72+
fetch-depth: 0
73+
fetch-tags: true
6974
- name: Build sdist
7075
run: pipx run build --sdist
71-
7276
- uses: actions/upload-artifact@v4
7377
with:
7478
name: cibw-sdist
7579
path: dist/*.tar.gz
7680

77-
upload_pypi:
81+
upload_test_pypi:
7882
needs: [build_wheels, build_sdist]
7983
runs-on: ubuntu-latest
80-
environment: pypi
84+
environment: test-pypi
8185
permissions:
8286
id-token: write
83-
if: github.event_name == 'release' && github.event.action == 'published'
87+
if: |
88+
(github.event_name == 'release' && github.event.action == 'published') ||
89+
(github.event_name == 'push' && github.ref == 'refs/heads/main')
8490
steps:
8591
- uses: actions/download-artifact@v4
8692
with:
@@ -95,6 +101,19 @@ jobs:
95101
uses: pypa/gh-action-pypi-publish@release/v1
96102
with:
97103
repository-url: https://test.pypi.org/legacy/
104+
105+
upload_pypi:
106+
needs: [build_wheels, build_sdist, upload_test_pypi]
107+
runs-on: ubuntu-latest
108+
environment: pypi
109+
permissions:
110+
id-token: write
111+
if: github.event_name == 'release' && github.event.action == 'published'
112+
steps:
113+
- uses: actions/download-artifact@v4
114+
with:
115+
pattern: cibw-*
116+
path: dist
117+
merge-multiple: true
98118
- name: Publish package distribution to PyPI
99119
uses: pypa/gh-action-pypi-publish@release/v1
100-

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- name: Checkout Source
18-
uses: actions/checkout@v2.3.1
18+
uses: actions/checkout@v4.2.2
1919

2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

@@ -34,7 +34,7 @@ jobs:
3434
3535
- name: Deploy
3636
if: github.ref == 'refs/heads/main'
37-
uses: JamesIves/github-pages-deploy-action@4.1.5
37+
uses: JamesIves/github-pages-deploy-action@v4.7.3
3838
with:
3939
branch: gh-pages # The branch the action should deploy to.
4040
folder: docs/_build/html # The folder the action should deploy.

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout source
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v4.2.2
1515

1616
- name: Cache pre-commit
1717
uses: actions/cache@v4

.github/workflows/tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,15 @@ jobs:
3333
- os: macos-latest
3434
python-version: "3.8"
3535
fail-fast: false
36+
env:
37+
CMAKE_POLICY_VERSION_MINIMUM: 3.5
3638

3739
steps:
3840
- name: Checkout Source
39-
uses: actions/checkout@v4
41+
uses: actions/[email protected]
42+
with:
43+
fetch-depth: 0
44+
fetch-tags: true
4045

4146
- name: Set up Python ${{ matrix.python-version }}
4247
uses: actions/setup-python@v5
@@ -54,6 +59,6 @@ jobs:
5459
pytest -v --cov-report=xml --cov=s2fft --cov-config=.coveragerc
5560
5661
- name: Upload coverage reports to Codecov
57-
uses: codecov/codecov-action@v3
62+
uses: codecov/codecov-action@v5
5863
env:
5964
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.gitmodules

Whitespace-only changes.

.pip_readme.rst

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

.style.yapf

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

MANIFEST.in

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ graft s2fft
22
graft tests
33
graft docs
44

5-
include .pip_readme.rst
6-
include README.rst
7-
include pytest.ini
5+
include README.md
86
include LICENCE.txt
9-
include s2fft/default-logging-config.yaml
107

118
exclude .coveragerc
129
exclude *.log

0 commit comments

Comments
 (0)