-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (39 loc) · 1.2 KB
/
daily.yml
File metadata and controls
53 lines (39 loc) · 1.2 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
name: Daily Build
on:
schedule:
# # At 18:50 UTC on everyday (12.20 mid night in Sri Lanka)
- cron: "50 18 * * *"
# Enables a button on Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
with:
ref: main
- name: Setup Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Setup Swagger Client
run: |
python setup.py install --user
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install requests
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: "Test Default API"
run: |
cd ./test
python3 test_default_api.py
cd ../
- name: Commit and push into the main branch
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add --all
git commit -m "Repo was updated by GitHub Actions" || echo "No changes to commit on the repo"
git push