forked from zenml-io/zenml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove poetry from CI (zenml-io#1346)
* Try removing poetry from CI * Set venv variable * Add missing shell * Try fixing windows installation * Remove debug logs * Some cleanup * Fix test * Investigate linting error * Use editable install * Invalidate GH action cache * Really fix test this time * Maybe fix HF datasets linting * Probably fix HF datasets linting * Remove most mentions of poetry * Remove more poetry mentions * Install server dependencies in readmes * Rename install workflow
- Loading branch information
Showing
14 changed files
with
119 additions
and
141 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: "Setup Matrix and Poetry" | ||
description: "Install Poetry, loads cached venv if applicable, and performs miscellaneous other operations" | ||
name: "Install ZenML" | ||
description: "Install ZenML, loads cached venv if applicable, and performs miscellaneous other operations" | ||
inputs: | ||
cache_version: | ||
description: 'Value gets appended to the cache key and will therefore invalidate the cache if it changes' | ||
|
@@ -32,12 +32,6 @@ runs: | |
run: | | ||
echo "SHELL_EXECUTABLE=C:\Program Files\Git\bin\bash.exe" >> $GITHUB_ENV | ||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Get current date | ||
shell: bash | ||
id: date | ||
|
@@ -50,19 +44,31 @@ runs: | |
CACHE_VERSION : ${{inputs.cache_version}} | ||
|
||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
id: cached-virtualenv | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
.venv | ||
poetry.lock | ||
path: .venv | ||
# Cache the complete venv dir for a given os, python version, | ||
# pyproject.toml, the current calendar week and the cache version. | ||
# Providing a different value for the cache version enables manual | ||
# invalidation of the cache in case it is in some erroneous state. | ||
key: venv-${{ runner.os }}-python-${{ inputs.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ steps.date.outputs.date }}-${{ hashFiles('cache_version') }} | ||
|
||
- name: Set virtualenv activation script env variable (windows) | ||
shell: bash | ||
run: echo "VENV=.venv/scripts/activate" >> "$GITHUB_ENV" | ||
if: runner.os == 'Windows' | ||
|
||
- name: Set virtualenv activation script env variable (unix) | ||
shell: bash | ||
run: echo "VENV=.venv/bin/activate" >> "$GITHUB_ENV" | ||
if: runner.os != 'Windows' | ||
|
||
- name: Install Project | ||
shell: bash | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --extras server | ||
if: steps.cached-virtualenv.outputs.cache-hit != 'true' | ||
run: | | ||
python -m venv .venv | ||
source $VENV | ||
python -m pip install --upgrade pip | ||
pip install -e ".[server,dev]" |
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
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
Oops, something went wrong.