-
Notifications
You must be signed in to change notification settings - Fork 40
38 lines (33 loc) · 1.05 KB
/
run-test-suite.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
name: Run the test suite
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
jobs:
install_and_run:
name: Run the test suite
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Set up Python 3.8
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: 3.8
- name: Install test dependencies
run: |-
python3 -m venv venv/
source venv/bin/activate
pip3 install \
--disable-pip-version-check \
--no-warn-script-location \
-r requirements.txt
pip3 check
# Ensure that even indirect dependencies are fully pinned
diff -u0 \
<(sed -e '/^#/d' -e '/^$/d' requirements.txt | sort -f) \
<(pip3 freeze | sort -f)
- name: Smoke test creation of Ubuntu OpenStack images
run: |-
source venv/bin/activate
pytest -v --doctest-modules