-
Notifications
You must be signed in to change notification settings - Fork 88
56 lines (48 loc) · 1.34 KB
/
test_podman.yml
File metadata and controls
56 lines (48 loc) · 1.34 KB
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
name: Test deployment with Podman
on:
pull_request:
branches:
- '*'
push:
branches:
- '*'
tags:
- '*'
jobs:
test_bestest_air:
name: Deploy with Podman and test with bestest_air test case
runs-on: ubuntu-latest
timeout-minutes: 1200
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install python packages
run: |
python --version
pip install --upgrade pip && pip install pandas==1.2.5 numpy==1.20.2 requests==2.25.1
PYTHONPATH=$GITHUB_WORKSPACE
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
# Storing PYTHONPATH above doesn't work for python so setting it below at run
PYTHONPATH=$PWD
- name: Install podman-compose
run: |
pip3 install podman-compose
podman --version
podman-compose --version
- name: Deploy BOPTEST
run: |
podman-compose build
podman-compose up -d web worker provision
sleep 10
- name: Run test
run: |
cd testing
python test_bestest_air.py
python report.py
- name: Shutdown BOPTEST
run: |
podman-compose down