Skip to content

Install stable version using pip #114

Install stable version using pip

Install stable version using pip #114

Workflow file for this run

# Workflow which verifies that the latest stable version can be installed from
# pip on all the supported Python versions
name: Install stable version using pip
on:
schedule:
- cron: '0 13 * * *'
- cron: '0 2 * * *'
permissions:
contents: read
jobs:
install_and_verify:
name: Install
runs-on: ${{ matrix.os }}
timeout-minutes: 2
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
python_version:
- 3.7
- 3.8
- 3.9
- "3.10"
- "3.11"
- "pypy-3.7"
include:
# python 3.5 + 3.6 is not supported with ubuntu-latest anymore so we need to
# use ubuntu 20.04
- python_version: 3.5
os: ubuntu-20.04
- python_version: 3.6
os: ubuntu-20.04
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Use Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Install Libcloud
run: |
python --version
pip show apache-libcloud && exit 1
pip install apache-libcloud
pip show apache-libcloud
# Job which verifies that the checksum for release artifacts for the latest
# stable version are the same for official ASF mirror and PyPi
verify_checksums:
name: Verify Artifacts Checksum
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Verify Checksums
run: |
LAST_STABLE_VERSION=$(curl -s --fail https://pypi.org/pypi/apache-libcloud/json | jq ".releases | to_entries | last | .key" -r)
echo "Verifying checksums for version ${LAST_STABLE_VERSION}"
./dist/verify_checksums.sh "apache-libcloud-${LAST_STABLE_VERSION}"