-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.3 KB
/
deploy.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
name: Test Deployment
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macOS-latest]
python-version: [3.9]
r-version: [4.2]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: Install System Dependencies
run: |
if [[ "${{ runner.os }}" == "macOS" ]]; then
# Add steps to install dependencies on macOS
brew install expect
echo "Runing test for MacOS"
elif [[ "${{ runner.os }}" == "Linux" ]]; then
# Add steps to install dependencies on Linux
sudo apt-get update
sudo apt-get -y install expect
else
echo "OS not supported"
fi
- name: Grant execute permissions to expect file
run: chmod +x ./.github/auto_interact.exp
- name: Grant execute permissions to bash file
run: chmod +x ./deploy_one_bash.sh
- name: Run Deployment Script via expect
run: ./.github/auto_interact.exp