Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: publish

# Runs when a GitHub release is published (Releases -> Draft a new release ->
# Publish release). Builds circStudio and uploads it to PyPI using PyPI's
# trusted publishing, so no PyPI password or token is stored on GitHub.

on:
release:
types: [published]

jobs:
build:
name: build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5

# Refuse to publish if the release tag (e.g. v1.1.3) does not match the
# version in pyproject.toml (e.g. 1.1.3).
- name: Check that the tag matches the package version
run: |
tag="${GITHUB_REF_NAME#v}"
version=$(grep -m1 '^version' pyproject.toml | cut -d'"' -f2)
if [ "$tag" != "$version" ]; then
echo "Release tag ($tag) does not match pyproject.toml version ($version)."
exit 1
fi

- name: Build source distribution and wheel
run: uv build

- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

publish:
name: upload to PyPI
needs: build
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write # required for PyPI trusted publishing
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Binary file modified paper/figures/fig1_architecture.pdf
Binary file not shown.
Binary file modified paper/figures/fig1_architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions paper/scripts/figure1_architecture.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ def inset(x, y, w, h, t, v, c, bars=True):
'relative amplitude (L5, M10), daily profiles,',
'light exposure summaries'], GREEN)
y = group(XL + 2.6, y, 'Sleep', [
'Seven sleep-scoring algorithms (Cole-Kripke,',
'Sadeh, Scripps, Oakley, Crespo, Roenneberg,',
'Condor), sleep regularity index, sleep',
'midpoint, wake after sleep onset'], GREEN)
'Six sleep-scoring algorithms (Cole-Kripke,',
'Sadeh, Scripps, Oakley, Crespo, Roenneberg),',
'sleep regularity index, sleep midpoint,',
'wake after sleep onset'], GREEN)
y = group(XL + 2.6, y, 'Signal structure', [
'Cosinor, singular spectrum analysis,',
'functional linear modeling, detrended',
Expand Down
Loading