Skip to content

Commit f7bf72f

Browse files
committed
Add code
1 parent 8ff2c71 commit f7bf72f

59 files changed

Lines changed: 11360 additions & 825 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docker-publish.yaml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- name: Checkout repository
3333
uses: actions/checkout@v4
3434

35+
- name: Clean up disk space
36+
uses: jlumbroso/free-disk-space@main
37+
3538
# Install the cosign tool except on PR
3639
# https://github.com/sigstore/cosign-installer
3740
- name: Install cosign
@@ -77,30 +80,29 @@ jobs:
7780
cache-from: type=gha
7881
cache-to: type=gha,mode=max
7982

80-
# Sign the resulting Docker image digest except on PRs.
81-
# This will only write to the public Rekor transparency log when the Docker
82-
# repository is public to avoid leaking data. If you would like to publish
83-
# transparency data even for private images, pass --force to cosign below.
84-
# https://github.com/sigstore/cosign
85-
- name: Sign the published Docker image
86-
if: ${{ github.event_name != 'pull_request' }}
87-
env:
88-
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
89-
TAGS: ${{ steps.meta.outputs.tags }}
90-
DIGEST: ${{ steps.build-and-push.outputs.digest }}
91-
# This step uses the identity token to provision an ephemeral certificate
92-
# against the sigstore community Fulcio instance.
93-
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
83+
- name: Free disk space after Docker build
84+
run: |
85+
docker buildx ls --format '{{.Name}}' | grep -v default | xargs -I {} docker buildx rm {} 2>/dev/null || true
86+
docker system prune -af --volumes
87+
docker builder prune -af
88+
89+
rm -rf ~/.docker/buildx || true
90+
rm -rf /tmp/docker-actions-toolkit-*/* 2>/dev/null || true
91+
92+
df -h /
93+
94+
- id: lower-repo
95+
name: Repository to lowercase
96+
run: |
97+
echo "repository=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT
9498
9599
# Build and push .sif files for Apptainer
96-
- name: Clean up disk space
97-
uses: jlumbroso/free-disk-space@main
98100
- name: Setup Apptainer
99101
uses: eWaterCycle/setup-apptainer@v2
100102
- name: Build and push Apptainer
101103
env:
102104
TAGS: ${{ steps.meta.outputs.tags }}
103105
run: |
104106
echo ${{ secrets.GITHUB_TOKEN }} | apptainer registry login -u ${{ secrets.GHCR_USERNAME }} --password-stdin docker://ghcr.io
105-
apptainer build container.sif docker://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
107+
apptainer build container.sif docker://${{ env.REGISTRY }}/${{ steps.lower-repo.outputs.repository }}:latest
106108
echo "${TAGS}" | xargs -I {} apptainer push container.sif oras://{}-sif

.github/workflows/pytest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
cache-dependency-glob: "uv.lock"
1717

1818
- name: Install the project
19-
run: uv sync --all-extras --dev
19+
run: uv sync --all-extras --all-groups
2020

2121
- name: Run tests
2222
run: uv run pytest

.github/workflows/ruff.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ jobs:
77
- uses: actions/checkout@v4
88
- uses: astral-sh/ruff-action@v3
99
with:
10-
version: 0.8.0
10+
version: 0.8.0

.gitignore

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,14 @@ cython_debug/
161161
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162162
#.idea/
163163

164-
outputs
165-
wandb
164+
*.csv
165+
166+
wandb
167+
lightning_logs
168+
perturbench_data
169+
170+
/outputs
171+
/meta_flow_matching
172+
/condot
173+
/logs
174+
/data

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
FROM --platform=linux/amd64 python:3.12-slim AS linux-base
22

33
# Utilities
4-
RUN apt-get update && apt-get upgrade -y
5-
RUN apt-get install -y --no-install-recommends build-essential \
6-
sudo curl git htop less rsync screen vim nano wget ca-certificates \
7-
openssh-client zsh
4+
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends build-essential \
5+
sudo curl git htop less rsync screen vim nano wget ca-certificates openssh-client zsh procps psmisc
86

97
# Download and install VS Code Server CLI
108
RUN wget -O /tmp/vscode-server-cli.tar.gz "https://update.code.visualstudio.com/latest/cli-linux-x64/stable" && \
@@ -31,6 +29,8 @@ ENV UV_LINK_MODE=copy
3129
ENV UV_PYTHON=python3.12
3230
ENV PATH="$UV_PROJECT_ENVIRONMENT/bin:$PATH"
3331
ENV PYTHONPATH="/srv/repo:$PYTHONPATH"
32+
# See https://github.com/jax-ml/jax/issues/29260
33+
ENV LD_LIBRARY_PATH=/venv/lib/python3.12/site-packages/nvidia/cuda_nvrtc/lib:$LD_LIBRARY_PATH
3434

3535
# Install uv
3636
COPY --from=ghcr.io/astral-sh/uv:0.6.6 /uv /usr/local/bin/uv
@@ -39,4 +39,4 @@ COPY --from=ghcr.io/astral-sh/uv:0.6.6 /uv /usr/local/bin/uv
3939
RUN --mount=type=cache,target=/root/.cache/uv \
4040
--mount=type=bind,source=uv.lock,target=uv.lock \
4141
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
42-
uv sync --frozen --no-install-project --no-dev
42+
uv sync --frozen --no-install-project --all-groups

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Marvin Sextro
3+
Copyright (c) 2026 Marvin Sextro
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)