-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from zenml-io/2024-04-05
Fix `pyyaml-include` dependency issue
- Loading branch information
Showing
2 changed files
with
62 additions
and
60 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 |
---|---|---|
|
@@ -23,68 +23,69 @@ inputs: | |
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: zenml-io/template-e2e-batch | ||
ref: ${{ inputs.ref-template }} | ||
path: ./local_checkout | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: zenml-io/template-e2e-batch | ||
ref: ${{ inputs.ref-template }} | ||
path: ./local_checkout | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Configure git (non-Windows) | ||
if: ${{ runner.os != 'Windows' }} | ||
shell: bash | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ZenML GmbH" | ||
- name: Configure git (Windows) | ||
if: ${{ runner.os == 'Windows' }} | ||
shell: bash | ||
run: | | ||
"C:\Program Files\Git\bin\git.exe" config --global user.email "[email protected]" | ||
"C:\Program Files\Git\bin\git.exe" config --global user.name "ZenML GmbH" | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Install wheel | ||
shell: bash | ||
run: | | ||
pip install wheel | ||
- name: Install ZenML | ||
if: ${{ inputs.ref-zenml != '' }} | ||
shell: bash | ||
run: | | ||
pip install "zenml[dev, server, templates]@git+https://github.com/zenml-io/zenml.git@${{ inputs.ref-zenml }}" | ||
- name: Install ZenML | ||
if: ${{ inputs.ref-zenml == '' }} | ||
shell: bash | ||
run: | | ||
pip install "zenml[dev, server, templates]" | ||
- name: Concatenate requirements | ||
shell: bash | ||
run: | | ||
zenml integration export-requirements -o ./local_checkout/integration-requirements.txt sklearn mlflow s3 slack evidently | ||
cat ./local_checkout/test-requirements.txt ./local_checkout/integration-requirements.txt >> ./local_checkout/all-requirements.txt | ||
- name: Configure git (non-Windows) | ||
if: ${{ runner.os != 'Windows' }} | ||
shell: bash | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ZenML GmbH" | ||
- name: Install requirements | ||
shell: bash | ||
run: | | ||
pip install -r ./local_checkout/all-requirements.txt | ||
- name: Configure git (Windows) | ||
if: ${{ runner.os == 'Windows' }} | ||
shell: bash | ||
run: | | ||
"C:\Program Files\Git\bin\git.exe" config --global user.email "[email protected]" | ||
"C:\Program Files\Git\bin\git.exe" config --global user.name "ZenML GmbH" | ||
- name: Run pytests | ||
shell: bash | ||
env: | ||
ZENML_STACK_NAME: ${{ inputs.stack-name }} | ||
run: | | ||
pytest ./local_checkout/tests | ||
- name: Install wheel | ||
shell: bash | ||
run: | | ||
pip install wheel uv | ||
- name: Clean-up | ||
shell: bash | ||
run: | | ||
rm -rf ./local_checkout | ||
- name: Install ZenML | ||
if: ${{ inputs.ref-zenml != '' }} | ||
shell: bash | ||
run: | | ||
uv pip install --system "zenml[dev, server, templates]@git+https://github.com/zenml-io/zenml.git@${{ inputs.ref-zenml }}" | ||
- name: Install ZenML | ||
if: ${{ inputs.ref-zenml == '' }} | ||
shell: bash | ||
run: | | ||
uv pip install --system "zenml[dev, server, templates]" | ||
- name: Concatenate requirements | ||
shell: bash | ||
run: | | ||
zenml integration export-requirements -o ./local_checkout/integration-requirements.txt sklearn mlflow s3 slack evidently | ||
cat ./local_checkout/test-requirements.txt ./local_checkout/integration-requirements.txt >> ./local_checkout/all-requirements.txt | ||
- name: Install requirements | ||
shell: bash | ||
run: | | ||
uv pip install --system -r ./local_checkout/all-requirements.txt | ||
uv pip install --system "pyyaml-include<2.0" | ||
- name: Run pytests | ||
shell: bash | ||
env: | ||
ZENML_STACK_NAME: ${{ inputs.stack-name }} | ||
run: | | ||
pytest ./local_checkout/tests | ||
- name: Clean-up | ||
shell: bash | ||
run: | | ||
rm -rf ./local_checkout |
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 +1,2 @@ | ||
zenml[templates] | ||
pyyaml-include<2.0 |