Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove space saver action + upgrade other actions #2174

Merged
merged 3 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/setup_environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ inputs.python-version }}

Expand Down Expand Up @@ -131,4 +131,4 @@ runs:
run: |
zenml integration list
pip list
pip check || true
pip check || true
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4.1.1

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5.0.0
with:
python-version: "3.8"

Expand Down Expand Up @@ -160,4 +160,4 @@ jobs:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
test_environment: ${{ matrix.test_environment }}
secrets: inherit
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/image-optimiser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

- name: Compress Images
uses: calibreapp/image-actions@main
uses: calibreapp/image-actions@1.1.0
with:
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:

steps:
- name: Maximize space for Docker
uses: easimon/maximize-build-space@v8
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 20000
swap-size-mb: 1024
Expand All @@ -132,7 +132,7 @@ jobs:
sudo systemctl restart docker
if: inputs.os=='ubuntu-latest' && (contains(inputs.test_environment, 'docker') || contains(inputs.test_environment, 'kubeflow') || contains(inputs.test_environment, 'airflow') || contains(inputs.test_environment, 'kubernetes'))

- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:

- name: Setup tmate session before tests
if: ${{ inputs.enable_tmate == 'before-tests' }}
uses: mxschmitt/action-tmate@v3
uses: mxschmitt/action-tmate@v3.17
with:
timeout-minutes: ${{ inputs.tmate_timeout }}

Expand All @@ -248,7 +248,7 @@ jobs:

- name: Setup tmate session after tests
if: ${{ inputs.enable_tmate == 'always' || (inputs.enable_tmate == 'on-failure' && failure()) }}
uses: mxschmitt/action-tmate@v3
uses: mxschmitt/action-tmate@v3.17
with:
timeout-minutes: ${{ inputs.tmate_timeout }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mixpanel-test-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
ZENML_ANALYTICS_OPT_IN: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.1

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5.0.0
with:
python-version: 3.8

Expand All @@ -27,4 +27,4 @@ jobs:
python -m pip install analytics-python

- name: Post fake metadata to segment
run: python3 scripts/mixpanel_filters_test.py
run: python3 scripts/mixpanel_filters_test.py
4 changes: 2 additions & 2 deletions .github/workflows/pr_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: JulienKode/team-labeler-action@v0.1.1
- uses: JulienKode/team-labeler-action@v1.1.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

- uses: TimonVS/pr-labeler-action@v3
- uses: TimonVS/pr-labeler-action@v4.1.1
with:
configuration-path: .github/branch-labels.yml
4 changes: 2 additions & 2 deletions .github/workflows/publish_api_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
PYTHONIOENCODING: "utf-8"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0 # fetch all commits/branches including gh-pages

Expand All @@ -29,7 +29,7 @@ jobs:
BRANCH='${{github.ref_name}}'
echo ::set-output name=VERSION::${BRANCH#release/}

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4.0.1
with:
node-version: "14"
- run: npm install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
PYTHONIOENCODING: 'utf-8'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4.1.1

- name: Get the version from the github tag ref
id: get_version
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish_helm_chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

# The following sed command replaces the version number in Chart.yaml with the tag version.
# It replaces the line that starts with "version: " with "version: <tag version>"
Expand All @@ -44,7 +44,7 @@ jobs:

#TODO: revisit the pinned helm version + find a higher version
- name: install helm with version 3.9.2
uses: azure/setup-helm@v3
uses: azure/setup-helm@v3.5
with:
version: "v3.9.2" # default is latest (stable)
id: install-helm
Expand All @@ -56,4 +56,4 @@ jobs:
REPOSITORY: zenml
run: |
helm package src/zenml/zen_server/deploy/helm
helm push $REPOSITORY-${{ github.ref_name }}.tgz oci://$REGISTRY/$REGISTRY_ALIAS
helm push $REPOSITORY-${{ github.ref_name }}.tgz oci://$REGISTRY/$REGISTRY_ALIAS
6 changes: 3 additions & 3 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
PYTHONIOENCODING: 'utf-8'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1

- name: Get the version from the github tag ref
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5.0.0
with:
python-version: '3.8'

- name: Install Poetry
uses: snok/install-poetry@v1
uses: snok/install-poetry@v1.3.4
with:
virtualenvs-create: true
virtualenvs-in-project: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish_to_pypi_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
PYTHONIOENCODING: 'utf-8'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
with:
ref: 'develop'

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5.0.0
with:
python-version: '3.8'

- name: Install Poetry
uses: snok/install-poetry@v1
uses: snok/install-poetry@v1.3.4
with:
virtualenvs-create: true
virtualenvs-in-project: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4.1.1

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5.0.0
with:
python-version: "3.8"

Expand All @@ -44,7 +44,7 @@ jobs:
uses: actions/[email protected]

- name: Set up Python 3.9
uses: actions/setup-python@v4.8.0
uses: actions/setup-python@v5.0.0
with:
python-version: "3.9"

Expand All @@ -59,7 +59,7 @@ jobs:
uses: actions/[email protected]

- name: Set up Python 3.9
uses: actions/setup-python@v4.8.0
uses: actions/setup-python@v5.0.0
with:
python-version: "3.9"

Expand Down
90 changes: 45 additions & 45 deletions .github/workflows/replace_api_docs_version
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,54 @@ name: Update API docs
on:
push:
branches:
- 'release/**'
- 'release/**'

jobs:
update_docs:
runs-on: ubuntu-latest

steps:
- name: Check out branch
uses: actions/checkout@v2

- name: Set VERSION
id: set_version
run: |
VERSION=$(echo '${{ github.ref }}' | awk -F "/" '{print $NF}')
echo "::set-output name=version::$VERSION"

- name: Update API docs links
run: |
DIR="docs/book"
VERSION=${{ steps.set_version.outputs.version }}

# Use find to iterate over all .md files in the given directory and its subdirectories
find "$DIR" -type f -name "*.md" | while read -r FILE; do
# Move from apidocs.zenml.io to sdkdocs and user the correct version
# Space or end-of-line, no trailing /
sed -i "s#https://apidocs.zenml.io\(\([[:space:]]\|$\)\)#https://sdkdocs.zenml.io/$VERSION\1#g" "$FILE"

# Trailing /
sed -i "s#https://apidocs.zenml.io/\([[:space:]]\)#https://sdkdocs.zenml.io/$VERSION/\1#g" "$FILE"

# Version or "latest"
sed -i "s#https://apidocs.zenml.io/\(latest\|[0-9]*\.[0-9]*\.[0-9]*\)\(/\?\)#https://sdkdocs.zenml.io/$VERSION\2#g" $FILE

# Append the correct version
# Space or end-of-line, no trailing /
sed -i "s#https://sdkdocs.zenml.io\(\([[:space:]]\|$\)\)#https://sdkdocs.zenml.io/$VERSION\1#g" "$FILE"

# Trailing /
sed -i "s#https://sdkdocs.zenml.io/\([[:space:]]\)#https://sdkdocs.zenml.io/$VERSION/\1#g" "$FILE"

# Version or "latest"
sed -i "s#https://sdkdocs.zenml.io/\(latest\|[0-9]*\.[0-9]*\.[0-9]*\)\(/\?\)#https://sdkdocs.zenml.io/$VERSION\2#g" $FILE
done

- name: Commit and push changes
run: |
git config --global user.name 'Code Monkey'
git config --global user.email '[email protected]'
git add docs/book/toc.md
git commit -m "Update API docs links" || { echo "No changes to commit" && exit 0; }
git push
- name: Check out branch
uses: actions/checkout@v4.1.1

- name: Set VERSION
id: set_version
run: |
VERSION=$(echo '${{ github.ref }}' | awk -F "/" '{print $NF}')
echo "::set-output name=version::$VERSION"

- name: Update API docs links
run: |
DIR="docs/book"
VERSION=${{ steps.set_version.outputs.version }}

# Use find to iterate over all .md files in the given directory and its subdirectories
find "$DIR" -type f -name "*.md" | while read -r FILE; do
# Move from apidocs.zenml.io to sdkdocs and user the correct version
# Space or end-of-line, no trailing /
sed -i "s#https://apidocs.zenml.io\(\([[:space:]]\|$\)\)#https://sdkdocs.zenml.io/$VERSION\1#g" "$FILE"

# Trailing /
sed -i "s#https://apidocs.zenml.io/\([[:space:]]\)#https://sdkdocs.zenml.io/$VERSION/\1#g" "$FILE"

# Version or "latest"
sed -i "s#https://apidocs.zenml.io/\(latest\|[0-9]*\.[0-9]*\.[0-9]*\)\(/\?\)#https://sdkdocs.zenml.io/$VERSION\2#g" $FILE

# Append the correct version
# Space or end-of-line, no trailing /
sed -i "s#https://sdkdocs.zenml.io\(\([[:space:]]\|$\)\)#https://sdkdocs.zenml.io/$VERSION\1#g" "$FILE"

# Trailing /
sed -i "s#https://sdkdocs.zenml.io/\([[:space:]]\)#https://sdkdocs.zenml.io/$VERSION/\1#g" "$FILE"

# Version or "latest"
sed -i "s#https://sdkdocs.zenml.io/\(latest\|[0-9]*\.[0-9]*\.[0-9]*\)\(/\?\)#https://sdkdocs.zenml.io/$VERSION\2#g" $FILE
done

- name: Commit and push changes
run: |
git config --global user.name 'Code Monkey'
git config --global user.email '[email protected]'
git add docs/book/toc.md
git commit -m "Update API docs links" || { echo "No changes to commit" && exit 0; }
git push
Loading
Loading