diff --git a/.copier-answers.yml b/.copier-answers.yml index f58e24fd..3b52651e 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: 542e56b +_commit: 13cf3e6 _src_path: gh:scipp/copier_template description: An h5py-like utility for NeXus files with seamless Scipp integration max_python: '3.12' diff --git a/.github/workflows/nightly_at_main.yml b/.github/workflows/nightly_at_main.yml index 67d31d87..f83c0c36 100644 --- a/.github/workflows/nightly_at_main.yml +++ b/.github/workflows/nightly_at_main.yml @@ -6,7 +6,7 @@ name: Nightly test at main branch on: workflow_dispatch: schedule: - - cron: '30 23 * * *' + - cron: '30 1 * * 1-5' jobs: setup: diff --git a/.github/workflows/nightly_at_release.yml b/.github/workflows/nightly_at_release.yml index b424c664..f9d811a0 100644 --- a/.github/workflows/nightly_at_release.yml +++ b/.github/workflows/nightly_at_release.yml @@ -6,7 +6,7 @@ name: Nightly tests at latest release on: workflow_dispatch: schedule: - - cron: '0 23 * * *' + - cron: '0 1 * * 1-5' jobs: setup: diff --git a/.github/workflows/unpinned.yml b/.github/workflows/unpinned.yml new file mode 100644 index 00000000..dbb546f4 --- /dev/null +++ b/.github/workflows/unpinned.yml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (c) 2023 Scipp contributors (https://github.com/scipp) + +name: Unpinned tests at latest release + +on: + workflow_dispatch: + schedule: + - cron: '0 2 * * 1' + +jobs: + setup: + name: Setup variables + runs-on: 'ubuntu-20.04' + outputs: + min_python: ${{ steps.vars.outputs.min_python }} + release_tag: ${{ steps.release.outputs.release_tag }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # history required so we can determine latest release tag + - name: Get last release tag from git + id: release + run: echo "release_tag=$(git describe --tags --abbrev=0 --match '[0-9]*.[0-9]*.[0-9]*')" >> $GITHUB_OUTPUT + - name: Get Python version for other CI jobs + id: vars + run: echo "min_python=$(cat .github/workflows/python-version-ci)" >> $GITHUB_OUTPUT + + tests: + name: Tests + needs: setup + strategy: + matrix: + os: ['ubuntu-20.04'] + python: + - version: '${{needs.setup.outputs.min_python}}' + tox-env: 'unpinned' + uses: ./.github/workflows/test.yml + with: + os-variant: ${{ matrix.os }} + python-version: ${{ matrix.python.version }} + tox-env: ${{ matrix.python.tox-env }} + checkout_ref: ${{ needs.setup.outputs.release_tag }} diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index ff33c0e1..1c3746e4 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -61,7 +61,7 @@ representative at an online or offline event. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at -scipp@ess.eu. +scipp[at]ess.eu. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the diff --git a/docs/developer/getting-started.md b/docs/developer/getting-started.md index 14902df5..1f0f5950 100644 --- a/docs/developer/getting-started.md +++ b/docs/developer/getting-started.md @@ -78,14 +78,14 @@ tox -e linkcheck Build the documentation using ```sh -python -m sphinx -v -b html -d build/.doctrees docs build/html +python -m sphinx -v -b html -d .tox/docs_doctrees docs html ``` Additionally, test the documentation using ```sh -python -m sphinx -v -b doctest -d build/.doctrees docs build/html -python -m sphinx -v -b linkcheck -d build/.doctrees docs build/html +python -m sphinx -v -b doctest -d .tox/docs_doctrees docs html +python -m sphinx -v -b linkcheck -d .tox/docs_doctrees docs html ``` ```` ````` \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 08454307..43ff08f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ dynamic = ["version"] [project.urls] "Bug Tracker" = "https://github.com/scipp/scippnexus/issues" +"Documentation" = "https://scipp.github.io/scippnexus" "Source" = "https://github.com/scipp/scippnexus" [tool.setuptools_scm] @@ -71,6 +72,7 @@ skip-string-normalization = true [tool.isort] skip_gitignore = true profile = "black" +known_first_party = ["scippnexus"] [tool.mypy] strict = true diff --git a/tox.ini b/tox.ini index 52d09ac9..42b826f3 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ isolated_build = true deps = -r requirements/test.txt setenv = JUPYTER_PLATFORM_DIRS = 1 -commands = pytest +commands = pytest {posargs} [testenv:nightly] deps = @@ -14,6 +14,13 @@ deps = pytest commands = pytest +[testenv:unpinned] +description = Test with unpinned dependencies, as a user would install now. +deps = + scippnexus + pytest +commands = pytest + [testenv:docs] description = invoke sphinx-build to build the HTML docs deps = -r requirements/docs.txt