-
Notifications
You must be signed in to change notification settings - Fork 18
128 lines (97 loc) · 3.34 KB
/
run-tests.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# This is a basic workflow to help you get started with Actions
name: Test Pull request
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
# Checkout just this repo
- name: Checkout runtime repo
uses: actions/checkout@v3
# with:
# path: runtime
# # run scanCode
# - name: Scan Code
# uses: apache/openwhisk-utilities/scancode@master
# # Install core OpenWhisk artifacts needed to build/test anything else
# - name: Checkout OpenWhisk core repo
# uses: actions/checkout@v3
# with:
# repository: ibm-functions/openwhisk
# ref: master/7ae02b8ede4f4b4068b3b95dbc3f02f902d936c9
# path: core
# fetch-depth: 0
# Setup Python to run the Scala Tests
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
# Setup Java to run the Scala Tests
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
# # Setup OpenWhisk
# - name: Setup OpenWhisk
# working-directory: core
# run: |
# ./tools/travis/setup.sh
# - name: Compile and Install Core OpenWhisk
# working-directory: core
# run: |
# export OPENWHISK_HOME=$(pwd)/../core
# IMAGE_PREFIX="testing"
# docker pull ibmfunctions/controller:nightly
# docker tag ibmfunctions/controller:nightly ${IMAGE_PREFIX}/controller
# docker pull ibmfunctions/invoker:nightly
# docker tag ibmfunctions/invoker:nightly ${IMAGE_PREFIX}/invoker
# ./gradlew install
# # Build Runtime:
# - name: Build Runtime
# working-directory: runtime
# run: |
# IMAGE_PREFIX="testing"
# ./gradlew distDocker -PdockerImagePrefix=${IMAGE_PREFIX}
# - name: Deploy
# working-directory: core
# run: |
# export OPENWHISK_HOME=$(pwd)/../core
- name: befor install -> install python3-pip
run: sudo apt-get install -y python3-pip
- name: befor install -> upgrade pip setuptools six
run: |
pip install --user --upgrade pip setuptools six
pip3 install --user --upgrade pip setuptools six
- name: Python verison
run: |
python --version
python3 --version
python3.10 --version
pip --version
pip3 --version
pip3.10 --version
- name: befor install -> setup.sh
run: |
./tools/travis/setup.sh
- name: script -> build
run: |
./tools/travis/build.sh
- name: script -> deploy
run: |
pip install --user jinja2==3.0.3
./tools/travis/deploy.sh
- name: script-> test
run: |
./tools/travis/test.sh
# - name: befor install
# run: sudo update-ca-certificates --fresh && ./tools/travis/setup.sh
# - name: script
# run: ./tools/travis/build.sh && ./tools/travis/deploy.sh && ./tools/travis/test.sh