Skip to content

Commit 8acb49d

Browse files
authored
Merge pull request #325 from scipp/copier-update-2024-04
Apply copier update
2 parents 7c4bb8e + 4dfb4a8 commit 8acb49d

File tree

18 files changed

+89
-148
lines changed

18 files changed

+89
-148
lines changed

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: 0b94d03
2+
_commit: c721391
33
_src_path: https://github.com/scipp/copier_template.git
44
description: Visualization library for Scipp
5-
max_python: '3.11'
5+
max_python: '3.12'
66
min_python: '3.9'
77
namespace_package: ''
88
nightly_deps: scipp

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# SPDX-License-Identifier: BSD-3-Clause
2-
# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3-
41
name: CI
52

63
on:
@@ -24,15 +21,16 @@ jobs:
2421
run: |
2522
echo "min_python=$(cat .github/workflows/python-version-ci)" >> $GITHUB_OUTPUT
2623
echo "min_tox_env=py$(cat .github/workflows/python-version-ci | sed 's/\.//g')" >> $GITHUB_OUTPUT
27-
- uses: actions/setup-python@v4
24+
- uses: actions/setup-python@v5
2825
with:
2926
python-version-file: '.github/workflows/python-version-ci'
30-
- run: python -m pip install --upgrade pip
31-
- run: python -m pip install -r requirements/ci.txt
32-
- run: tox -e static
33-
- uses: stefanzweifel/git-auto-commit-action@v5
27+
- uses: pre-commit/[email protected]
28+
with:
29+
extra_args: --all-files
30+
- uses: pre-commit-ci/[email protected]
31+
if: always()
3432
with:
35-
commit_message: Apply automatic formatting
33+
msg: Apply automatic formatting
3634

3735
tests:
3836
name: Tests

.github/workflows/copier.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Copier template sync
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 1 * * 1'
7+
8+
jobs:
9+
update:
10+
name: Sync with copier template
11+
runs-on: 'ubuntu-latest'
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.X'
17+
- run: pip install copier
18+
- run: copier update --skip-answered --vcs-ref=HEAD --conflict=rej
19+
- name: Create Pull Request
20+
uses: peter-evans/create-pull-request@v6
21+
with:
22+
title: '[CRON] Sync with copier template'
23+
body: |
24+
This PR updates the project to the latest version of scipp's [copier-template](https://github.com/scipp/copier_template).
25+
Remember to check for any conflicts and resolve them.

.github/workflows/docs.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# SPDX-License-Identifier: BSD-3-Clause
2-
# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3-
41
name: Docs
52

63
on:
@@ -47,12 +44,12 @@ jobs:
4744
runs-on: 'ubuntu-22.04'
4845
steps:
4946
- run: sudo apt install --yes graphviz pandoc
50-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
5148
with:
5249
ref: ${{ inputs.branch == '' && github.ref_name || inputs.branch }}
5350
repository: ${{ github.event.pull_request.head.repo.full_name }}
5451
fetch-depth: 0 # history required so cmake can determine version
55-
- uses: actions/setup-python@v4
52+
- uses: actions/setup-python@v5
5653
with:
5754
python-version-file: '.github/workflows/python-version-ci'
5855
- run: python -m pip install --upgrade pip
@@ -63,12 +60,12 @@ jobs:
6360
if: ${{ inputs.version == '' }}
6461
- run: tox -e linkcheck
6562
if: ${{ inputs.linkcheck }}
66-
- uses: actions/upload-artifact@v3
63+
- uses: actions/upload-artifact@v4
6764
with:
6865
name: docs_html
6966
path: html/
7067

71-
- uses: JamesIves/github-pages-deploy-action@v4.4.3
68+
- uses: JamesIves/github-pages-deploy-action@v4.5.0
7269
if: ${{ inputs.publish }}
7370
with:
7471
branch: gh-pages

.github/workflows/nightly_at_main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# SPDX-License-Identifier: BSD-3-Clause
2-
# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3-
41
name: Nightly test at main branch
52

63
on:

.github/workflows/nightly_at_release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# SPDX-License-Identifier: BSD-3-Clause
2-
# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3-
41
name: Nightly tests at latest release
52

63
on:

.github/workflows/release.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# SPDX-License-Identifier: BSD-3-Clause
2-
# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3-
41
name: Release
52

63
on:
@@ -18,7 +15,7 @@ jobs:
1815
runs-on: 'ubuntu-22.04'
1916

2017
steps:
21-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
2219
with:
2320
submodules: true
2421
fetch-depth: 0 # history required so setuptools_scm can determine version
@@ -31,7 +28,7 @@ jobs:
3128
boa
3229
- run: conda mambabuild --channel conda-forge --channel scipp --no-anaconda-upload --override-channels --output-folder conda/package conda
3330

34-
- uses: actions/upload-artifact@v3
31+
- uses: actions/upload-artifact@v4
3532
with:
3633
name: conda-package-noarch
3734
path: conda/package/noarch/*.tar.bz2
@@ -41,11 +38,11 @@ jobs:
4138
runs-on: 'ubuntu-22.04'
4239

4340
steps:
44-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@v4
4542
with:
4643
fetch-depth: 0 # history required so setuptools_scm can determine version
4744

48-
- uses: actions/setup-python@v4
45+
- uses: actions/setup-python@v5
4946
with:
5047
python-version-file: '.github/workflows/python-version-ci'
5148

@@ -56,7 +53,7 @@ jobs:
5653
run: python -m build
5754

5855
- name: Upload wheels
59-
uses: actions/upload-artifact@v3
56+
uses: actions/upload-artifact@v4
6057
with:
6158
name: dist
6259
path: dist
@@ -70,8 +67,8 @@ jobs:
7067
id-token: write
7168
if: github.event_name == 'release' && github.event.action == 'published'
7269
steps:
73-
- uses: actions/download-artifact@v3
74-
- uses: pypa/[email protected].10
70+
- uses: actions/download-artifact@v4
71+
- uses: pypa/[email protected].14
7572

7673
upload_conda:
7774
name: Deploy Conda
@@ -80,7 +77,7 @@ jobs:
8077
if: github.event_name == 'release' && github.event.action == 'published'
8178

8279
steps:
83-
- uses: actions/download-artifact@v3
80+
- uses: actions/download-artifact@v4
8481
- uses: mamba-org/setup-micromamba@v1
8582
with:
8683
environment-name: upload-env
@@ -104,7 +101,7 @@ jobs:
104101
permissions:
105102
contents: write # This is needed so that the action can upload the asset
106103
steps:
107-
- uses: actions/download-artifact@v3
104+
- uses: actions/download-artifact@v4
108105
- name: Zip documentation
109106
run: |
110107
mv docs_html documentation-${{ github.ref_name }}

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# SPDX-License-Identifier: BSD-3-Clause
2-
# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3-
41
name: Test
52

63
on:
@@ -48,16 +45,16 @@ jobs:
4845
runs-on: ${{ inputs.os-variant }}
4946

5047
steps:
51-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
5249
with:
5350
ref: ${{ inputs.checkout_ref }}
54-
- uses: actions/setup-python@v3
51+
- uses: actions/setup-python@v5
5552
with:
5653
python-version: ${{ inputs.python-version }}
5754
- run: python -m pip install --upgrade pip
5855
- run: python -m pip install -r ${{ inputs.pip-recipe }}
5956
- run: tox -e ${{ inputs.tox-env }}
60-
- uses: actions/upload-artifact@v3
57+
- uses: actions/upload-artifact@v4
6158
if: ${{ inputs.coverage-report }}
6259
with:
6360
name: CoverageReport

.github/workflows/unpinned.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# SPDX-License-Identifier: BSD-3-Clause
2-
# Copyright (c) 2023 Scipp contributors (https://github.com/scipp)
3-
41
name: Unpinned tests at latest release
52

63
on:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ docs/generated/
3838
*.raw
3939
*.cif
4040
*.rcif
41+
*.ort
4142

4243
# Images
4344
*.png

0 commit comments

Comments
 (0)