Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit d132835

Browse files
authored
github action Update (#236)
* use Ubuntu 20.04, python 3.10 and jdk 11 for build * update to new Openwhisk build
1 parent a246bbc commit d132835

File tree

2 files changed

+45
-25
lines changed

2 files changed

+45
-25
lines changed

.github/workflows/run-tests.yml

Lines changed: 43 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: Python Runtimes Build and Test
3+
name: Test Pull request
44

55
# Controls when the workflow will run
66
on:
@@ -16,27 +16,48 @@ jobs:
1616

1717
Test:
1818

19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-20.04
2020

2121
steps:
22-
- name: Check out the repo
23-
uses: actions/checkout@v2
24-
25-
- name: update ca certificates
26-
run: sudo update-ca-certificates --fresh
27-
28-
- name: Setup
29-
run: ./tools/travis/setup.sh
22+
# Checkout just this repo
23+
- name: Checkout runtime repo
24+
uses: actions/checkout@v3
3025

31-
- name: Fix Old ansible
32-
run: python -m pip install --user ansible==2.8.18
33-
34-
- name: Build
35-
run: ./tools/travis/build.sh
36-
37-
- name: Deploy
38-
run: ./tools/travis/deploy.sh
39-
40-
- name: Test
41-
run: ./tools/travis/test.sh
42-
26+
# Setup Python to run the Scala Tests
27+
- name: Setup Python
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: '3.10'
31+
32+
# Setup Java to run the Scala Tests
33+
- name: Setup Java
34+
uses: actions/setup-java@v3
35+
with:
36+
distribution: 'temurin'
37+
java-version: '11'
38+
39+
- name: befor install -> install python3-pip
40+
run: sudo apt-get install -y python3-pip
41+
42+
- name: befor install -> upgrade pip setuptools six
43+
run: |
44+
pip install --user --upgrade pip setuptools six
45+
pip3 install --user --upgrade pip setuptools six
46+
47+
48+
- name: befor install -> setup.sh
49+
run: |
50+
./tools/travis/setup.sh
51+
52+
- name: script -> build
53+
run: |
54+
./tools/travis/build.sh
55+
56+
- name: script -> deploy
57+
run: |
58+
pip install --user jinja2==3.0.3
59+
./tools/travis/deploy.sh
60+
61+
- name: script-> test
62+
run: |
63+
./tools/travis/test.sh

tools/travis/setup.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ cd $HOMEDIR
1313
# Clone and setup openwhisk to have a local test environment.
1414
git clone https://github.com/ibm-functions/openwhisk.git openwhisk
1515
cd openwhisk
16-
# Use a fixed commit to run the tests, to explicitly control when changes are consumed.
17-
# Commit: minor version bump of azure-storage-blob to fix builds (#5150)
18-
git checkout 92f5d870bdecf01ccf0bf46baac582955fdbdfa6
16+
17+
git checkout 8d7f1dfc85b12fda81153c34a540f6c01a4780f4
1918

2019
# setup the openwhisk environment
2120
./tools/travis/setup.sh

0 commit comments

Comments
 (0)