Skip to content

Commit 0d7b710

Browse files
committed
copier update
1 parent cb00cc3 commit 0d7b710

12 files changed

Lines changed: 49 additions & 6 deletions

File tree

.copier-answers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: 6848c57
2+
_commit: 86a1e5c
33
_src_path: gh:scipp/copier_template
44
description: Diffraction data reduction for the European Spallation Source
55
max_python: '3.12'
66
min_python: '3.10'
77
namespace_package: ess
8-
nightly_deps: scipp,scippnexus,sciline,plopp,scippneutron
8+
nightly_deps: scipp,scippnexus,sciline,plopp,scippneutron,essreduce
99
orgname: scipp
1010
prettyname: ESSdiffraction
1111
projectname: essdiffraction
12-
related_projects: Scipp,ScippNexus,ScippNeutron,Sciline,Plopp
12+
related_projects: Scipp,ScippNexus,ScippNeutron,Sciline,Plopp,ESSreduce
1313
year: 2024

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
os-variant: ${{ matrix.os }}
4747
python-version: ${{ matrix.python.version }}
4848
tox-env: ${{ matrix.python.tox-env }}
49+
secrets: inherit
4950

5051
docs:
5152
needs: tests
@@ -54,3 +55,4 @@ jobs:
5455
publish: false
5556
linkcheck: ${{ contains(matrix.variant.os, 'ubuntu') && github.ref == 'refs/heads/main' }}
5657
branch: ${{ github.head_ref == '' && github.ref_name || github.head_ref }}
58+
secrets: inherit

.github/workflows/docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
docs:
4343
name: Build documentation
4444
runs-on: 'ubuntu-22.04'
45+
env:
46+
ESS_PROTECTED_FILESTORE_USERNAME: ${{ secrets.ESS_PROTECTED_FILESTORE_USERNAME }}
47+
ESS_PROTECTED_FILESTORE_PASSWORD: ${{ secrets.ESS_PROTECTED_FILESTORE_PASSWORD }}
48+
4549
steps:
4650
- run: sudo apt install --yes graphviz pandoc
4751
- uses: actions/checkout@v4
@@ -65,7 +69,7 @@ jobs:
6569
name: docs_html
6670
path: html/
6771

68-
- uses: JamesIves/github-pages-deploy-action@v4.6.1
72+
- uses: JamesIves/github-pages-deploy-action@v4.6.3
6973
if: ${{ inputs.publish }}
7074
with:
7175
branch: gh-pages

.github/workflows/nightly_at_main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ jobs:
3131
os-variant: ${{ matrix.os }}
3232
python-version: ${{ matrix.python.version }}
3333
tox-env: ${{ matrix.python.tox-env }}
34+
secrets: inherit

.github/workflows/nightly_at_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ jobs:
3838
python-version: ${{ matrix.python.version }}
3939
tox-env: ${{ matrix.python.tox-env }}
4040
checkout_ref: ${{ needs.setup.outputs.release_tag }}
41+
secrets: inherit

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,26 @@ on:
4141
type: string
4242

4343
jobs:
44+
package-test:
45+
runs-on: ${{ inputs.os-variant }}
46+
47+
steps:
48+
- uses: actions/checkout@v4
49+
with:
50+
ref: ${{ inputs.checkout_ref }}
51+
- uses: actions/setup-python@v5
52+
with:
53+
python-version: ${{ inputs.python-version }}
54+
- run: python -m pip install --upgrade pip
55+
- run: python -m pip install .
56+
- run: python tests/package_test.py
57+
name: Run package tests
58+
4459
test:
4560
runs-on: ${{ inputs.os-variant }}
61+
env:
62+
ESS_PROTECTED_FILESTORE_USERNAME: ${{ secrets.ESS_PROTECTED_FILESTORE_USERNAME }}
63+
ESS_PROTECTED_FILESTORE_PASSWORD: ${{ secrets.ESS_PROTECTED_FILESTORE_PASSWORD }}
4664

4765
steps:
4866
- uses: actions/checkout@v4

.github/workflows/unpinned.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ jobs:
3838
python-version: ${{ matrix.python.version }}
3939
tox-env: ${{ matrix.python.tox-env }}
4040
checkout_ref: ${{ needs.setup.outputs.release_tag }}
41+
secrets: inherit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ __pycache__/
2020
.pytest_cache
2121
.mypy_cache
2222
docs/generated/
23+
.ruff_cache
2324

2425
# Editor settings
2526
.idea/

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
"image_dark": "_static/logo-dark.svg",
170170
},
171171
"external_links": [
172+
{"name": "ESSreduce", "url": "https://scipp.github.io/essreduce"},
172173
{"name": "Plopp", "url": "https://scipp.github.io/plopp"},
173174
{"name": "Sciline", "url": "https://scipp.github.io/sciline"},
174175
{"name": "Scipp", "url": "https://scipp.github.io"},

requirements/make_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def as_nightly(repo: str) -> str:
5555
version = f"cp{sys.version_info.major}{sys.version_info.minor}"
5656
base = "https://github.com/scipp/scipp/releases/download/nightly/scipp-nightly"
5757
suffix = "manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
58-
return "-".join([base, version, version, suffix])
58+
prefix = "scipp @ "
59+
return prefix + "-".join([base, version, version, suffix])
5960
return f"{repo} @ git+https://github.com/{org}/{repo}@main"
6061

6162

0 commit comments

Comments
 (0)