-
Notifications
You must be signed in to change notification settings - Fork 18
72 lines (57 loc) · 1.78 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
# 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" ]
schedule:
- cron: "0 8 * * 1" # At 08:00 AM, only on Monday
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
# Checkout just this repo
- name: Checkout runtime repo
uses: actions/checkout@v3
# 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'
- 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: |
docker image ls && ./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 && docker image ls
- name: script-> test
run: |
./tools/travis/test.sh