-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: multiple python version support with latest pyspark and hail (#…
…974) * chore(pyspark): update to 3.5.X * chore: fix doctest syntax * chore: bump temurin version to 11 * feat: allow multiple python versions * feat: python matrix for gha * chore: pre-commit auto fixes [...] * chore: typos * chore: fix python version in setup dev script * fix: attempt to fix the 3.11 tests * fix: set the session correctly in variant_index_config * Revert "chore: fix doctest syntax" This reverts commit 630c0c9. * chore: update dependencies * Revert "Revert "chore: fix doctest syntax"" This reverts commit 18c66b1. * chore: bump image to 2.2 * chore: update lock files * build: poetry cleanup * build: uv checks droped * chore: fix dockerfile and install test deps * build(uv): add all dependencies to run tests * chore: fix test issue with rounding error * chore: fix dependency version lower bounds * chore: add .python-version file to ignored * build: new setup * build: new setup * build: new setup * build: new setup * build: new setup * revert: bring back initialization actions * chore: align variable name * chore: update pre-commit python version * chore: docs update * feat: more complex uv installation * feat: notify to source shellrc file when installing uv * fix: checks * chore: debug gha * chore: debug gha * feat: debug gha * feat: debug gha * feat: debug gha * feat: force user shell * feat: gha debug * feat: gha debug * feat: gha debug * feat: gha debug --------- Co-authored-by: project-defiant <[email protected]> Co-authored-by: Szymon Szyszkowski <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
aa00959
commit 3d31edd
Showing
27 changed files
with
4,350 additions
and
6,673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ name: Release | |
|
||
"on": | ||
push: | ||
branches: ["main", "release/**"] | ||
branches: ["main", "release/**", "dev"] | ||
|
||
concurrency: | ||
group: deploy | ||
cancel-in-progress: false # prevent hickups with semantic-release | ||
|
||
env: | ||
PYTHON_VERSION_DEFAULT: "3.10.8" | ||
PYTHON_VERSION_DEFAULT: "3.11.11" | ||
|
||
jobs: | ||
release: | ||
|
@@ -40,9 +40,7 @@ jobs: | |
|
||
- name: Python Semantic Release | ||
id: semrelease | ||
# v9.6.0 is required due to the python v3.12 in the newer version of semantic release action which | ||
# breaks the poetry build command. | ||
uses: python-semantic-release/[email protected] | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
github_token: ${{ steps.trigger-token.outputs.token }} | ||
|
||
|
@@ -121,25 +119,19 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION_DEFAULT }} | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
id: cached-dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: .venv | ||
key: | | ||
venv-${{ runner.os }}-\ | ||
${{ env.PYTHON_VERSION_DEFAULT }}-\ | ||
${{ hashFiles('**/poetry.lock') }} | ||
${{ hashFiles('**/uv.lock') }} | ||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
- name: Install library | ||
run: poetry install --without tests --no-interaction | ||
if: steps.cached-dependencies.outputs.cache-hit != 'true' | ||
run: uv sync --group docs | ||
- name: Publish docs | ||
run: poetry run mkdocs gh-deploy --force | ||
run: uv run mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,5 @@ site/ | |
.coverage* | ||
wandb/ | ||
hail*.log | ||
.python-version | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,20 @@ | ||
FROM python:3.10-bullseye | ||
|
||
RUN apt-get update \ | ||
&& apt-get clean \ | ||
&& apt-get install -y openjdk-11-jdk \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN apt-get update && \ | ||
apt-get clean && \ | ||
apt-get install -y openjdk-11-jdk && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV POETRY_NO_INTERACTION=1 \ | ||
POETRY_VIRTUALENVS_IN_PROJECT=1 \ | ||
POETRY_VIRTUALENVS_CREATE=1 \ | ||
POETRY_CACHE_DIR=/tmp/poetry_cache \ | ||
JAVA_HOME=/usr | ||
ENV JAVA_HOME=/usr | ||
|
||
RUN pip install poetry>=2.0.0 | ||
RUN pip install uv | ||
WORKDIR /app | ||
|
||
COPY pyproject.toml poetry.lock ./ | ||
COPY pyproject.toml uv.lock ./ | ||
RUN touch README.md | ||
|
||
RUN poetry config installer.max-workers 10 | ||
RUN poetry install --without dev,docs,tests --no-root --no-interaction --no-ansi -vvv && rm -rf $POETRY_CACHE_DIR | ||
RUN uv sync | ||
|
||
COPY src ./src | ||
|
||
RUN poetry install --without dev,docs,tests | ||
|
||
ENTRYPOINT ["poetry", "run", "gentropy"] | ||
ENTRYPOINT ["uv", "run", "gentropy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.