forked from apache/libcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (62 loc) · 1.91 KB
/
install_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# 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}"