Skip to content

Commit

Permalink
update CI nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzenklotz committed Oct 9, 2024
1 parent aab5cf9 commit 484cec2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,12 @@ jobs:

steps:
- uses: actions/checkout@v3

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Install dependencies
run: |
pip install poetry
poetry install --extras all --with examples --with dev
run: uv python install ${{ matrix.python-version }}

- name: Check if git is dirty
run: |
Expand Down
4 changes: 2 additions & 2 deletions _tooling/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ for PKG in {cluster_tools,webknossos}/pyproject.toml; do
echo "__version__ = '$PKG_VERSION'" > ./"$PKG"/version.py

poetry version "$PKG_VERSION"
# replace all relative path dependencies with the current version:
sed -i 's/\(.*\) = .* path \= \"\.\..*/\1 = "'"$PKG_VERSION"'"/g' pyproject.toml
# replace relative path dependencies (i.e. cluster-tools) with the current version:
sed -i 's/"cluster-tools"/"cluster-tools=='"${PKG_VERSION}"'"/g' pyproject.toml

uv build
uv publish
Expand Down
8 changes: 5 additions & 3 deletions webknossos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM python:3.10
FROM python:3.12

COPY requirements.txt /
# Remove once cluster_tools is updated to uv as well
RUN pip install poetry==1.8

RUN pip install -r /requirements.txt
COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv

RUN mkdir /webknossos
COPY webknossos/webknossos /webknossos/webknossos
Expand All @@ -18,5 +19,6 @@ COPY cluster_tools/README.md /cluster_tools/

WORKDIR /webknossos

RUN uv venv --system-site-packages
RUN uv sync --all-extras --frozen
RUN poetry config virtualenvs.create false && poetry install --all-extras

0 comments on commit 484cec2

Please sign in to comment.