Skip to content

Commit 64dfb69

Browse files
committed
Merge branch 'main' into ram
2 parents e7d748a + 464ec13 commit 64dfb69

File tree

19 files changed

+99
-131
lines changed

19 files changed

+99
-131
lines changed

.circleci/config.yml

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

.github/pull_request_template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ Thank you for contributing to DeepInverse!
33

44
Please refer to our [contributing guidelines](https://deepinv.github.io/deepinv/contributing.html) for full instructions on how to contribute, including writing tests, documentation and code style.
55

6+
Once the GitHub tests have been approved by a maintainer (only required for first-time contributors), and the `Build Docs` GitHub action
7+
has run successfully, you can download the documentation as a zip file from the [Actions page](https://github.com/deepinv/deepinv/actions/workflows/documentation.yml). Look for the workflow run corresponding to your pull request.
8+
9+
610
### Checks to be done before submitting your PR
711

812
- [ ] `python3 -m pytest deepinv/tests` runs successfully.

.github/workflows/documentation.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ concurrency:
1616

1717
permissions:
1818
contents: write
19+
pull-requests: write
1920

2021
jobs:
2122
docs:
@@ -41,12 +42,15 @@ jobs:
4142
# Run doctest with sphinx, to get the extra IGNORE_OUTPUT primitive
4243
# using plot_gallery=0 to avoid building examples
4344
sphinx-build -M doctest docs/source/ docs/build/ -D plot_gallery=0 -v $_doctest_files
44-
- name: Deploy
45-
uses: peaceiris/actions-gh-pages@v3
46-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
45+
- name: Upload Documentation Artifact
46+
id: upload-artifact
47+
uses: actions/upload-artifact@v4
4748
with:
48-
publish_branch: gh-pages
49-
github_token: ${{ secrets.GITHUB_TOKEN }}
50-
publish_dir: _build/
51-
force_orphan: true
52-
enable_jekyll: false
49+
name: documentation
50+
path: _build/
51+
52+
# Log artifact URL
53+
- name: Link to generated docs here
54+
if: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' }}
55+
run: |
56+
echo "Documentation artifact URL: ${{ steps.upload-artifact.outputs.artifact-url }}"

.github/workflows/expose_doc.yml

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

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-python@v4
1717
with:
18-
python-version: '3.9'
18+
python-version: '3.10' # minimum supported version
1919
- uses: psf/black@stable
2020
- name: Install and run ruff
2121
run: |
2222
pip install ruff
23-
ruff check --target-version "py39" --select "UP006"
23+
ruff check --target-version "py310" --select "UP006"

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ jobs:
5050
- name: Set up Python
5151
uses: actions/setup-python@v5
5252
with:
53-
python-version: '3.9'
53+
python-version: '3.10' # minimum supported version
54+
cache: 'pip' # caching pip dependencies
5455

5556
- name: Install tools
5657
run: |

.github/workflows/test.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,32 @@ jobs:
2424
strategy:
2525
matrix:
2626
include:
27-
# Test with all dependencies
27+
# Ubuntu tests
2828
- os: ubuntu-latest
29-
version_python: 3.9
29+
version_python: "3.10"
3030
extra: dataset,denoisers,test
31-
name: "ubuntu all dependencies"
32-
# Test with all dependencies
31+
name: "ubuntu py3.10 all dependencies"
32+
- os: ubuntu-latest
33+
version_python: "3.11"
34+
extra: dataset,denoisers,test
35+
name: "ubuntu py3.11 all dependencies"
36+
- os: ubuntu-latest
37+
version_python: "3.12"
38+
extra: dataset,denoisers,test
39+
name: "ubuntu py3.12 all dependencies"
40+
# Windows tests
41+
- os: windows-latest
42+
version_python: "3.10"
43+
extra: dataset,denoisers,test
44+
name: "windows py3.10 all dependencies"
3345
- os: windows-latest
34-
version_python: 3.9
46+
version_python: "3.11"
3547
extra: dataset,denoisers,test
36-
name: "windows all dependencies"
48+
name: "windows py3.11 all dependencies"
49+
- os: windows-latest
50+
version_python: "3.12"
51+
extra: dataset,denoisers,test
52+
name: "windows py3.12 all dependencies"
3753
env:
3854
DEEPINV_MOCK_TESTS: "True"
3955
steps:
@@ -47,6 +63,17 @@ jobs:
4763
run: |
4864
pip install .[${{ matrix.extra }}]
4965
66+
# For debugging purposes
67+
- name: Check Python version
68+
run: python3 --version
69+
70+
- name: Check installed packages
71+
run: pip list
72+
73+
- name: Test importing numpy
74+
run: python3 -c "import numpy; print('NumPy version:', numpy.__version__)"
75+
# ----------------------------
76+
5077
- name: Test with pytest and generate coverage report
5178
run: |
5279
python3 -m pytest -n 2 --dist=loadgroup --cov=deepinv --junitxml=junit.xml -o junit_family=legacy -v

.github/workflows/upload_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Python
1919
uses: actions/setup-python@v5
2020
with:
21-
python-version: '3.9'
21+
python-version: '3.10'
2222

2323
- name: Install tools
2424
run: |

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Changed
3030
- Make autograd use the base linear operator for `deepinv.physics.adjoint_function` (:gh:`519` by `Jérémy Scanvic`_)
3131
- Parallelize the test suite making it 15% faster (:gh:`522` by `Jérémy Scanvic`_)
3232
- Adjust backward paths for tomography (:gh:`535` by `Johannes Hertrich`_)
33+
- Update python version to 3.10+ (:gh:`605` by `Minh Hai Nguyen`_)
3334

3435
Fixed
3536
^^^^^

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ authors:
5656
given-names: "Romain"
5757
- family-names: "Weiss"
5858
given-names: "Pierre"
59-
version: "0.3.0"
59+
version: "0.3.2"
6060
doi: "https://doi.org/10.48550/arXiv.2505.20160"
6161
date-released: 2023-06-30
6262
repository-code: "https://github.com/deepinv/deepinv"

0 commit comments

Comments
 (0)