You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2024/06/29 14:56:34 UTC
(libcloud) 01/01: Add new CI job which builds release artifact.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch build_release_artifact_ci_job
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 491d67d15e61374e8f8be9a7acb04ecd1b31bdcd
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sat Jun 29 16:55:44 2024 +0200
Add new CI job which builds release artifact.
---
.github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 0a46cf315..215d02b98 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -201,6 +201,41 @@ jobs:
run: |
tox -e black-check,isort-check,pyupgrade,checks,import-timings,lint,pylint,mypy
+ build_test_release_artifact:
+ name: Build and Test Release Artifact
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ python_version: [3.8]
+
+ steps:
+ - uses: actions/checkout@master
+ with:
+ fetch-depth: 1
+
+ - name: Use Python ${{ matrix.python_version }}
+ uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python_version }}
+
+ - name: Cache Python Dependencies
+ uses: actions/cache@v4
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements-lint.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-pip-
+
+ - name: Install Python Dependencies
+ run: |
+ pip install -r requirements-ci.txt
+ pip install -e ".[build]"
+
+ - name: Build Release Artifact
+ run: |
+ python -m build
+
build_test_docker_image:
name: Build and Verify Docker Image
runs-on: ubuntu-latest